java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
com.sun.xml.messaging.saaj.util.ByteInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
Constructor Summary
ConstructorDescriptionByteInputStream
(byte[] buf, int length) ByteInputStream
(byte[] buf, int offset, int length) -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferTo
Methods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
ByteInputStream
public ByteInputStream() -
ByteInputStream
public ByteInputStream(byte[] buf, int length) -
ByteInputStream
public ByteInputStream(byte[] buf, int offset, int length)
-
-
Method Details
-
getBytes
public byte[] getBytes() -
getCount
public int getCount() -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteArrayInputStream
- Throws:
IOException
-
setBuf
public void setBuf(byte[] buf)
-