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
ConstructorsConstructorDescriptionByteInputStream(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, transferToMethods 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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteArrayInputStream- Throws:
IOException
-
setBuf
public void setBuf(byte[] buf)
-