Package com.sun.xml.messaging.saaj.util
Class ByteInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ByteArrayInputStream
-
- com.sun.xml.messaging.saaj.util.ByteInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ByteInputStream extends ByteArrayInputStream
-
-
Field Summary
-
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos
-
-
Constructor Summary
Constructors Constructor Description ByteInputStream()
ByteInputStream(byte[] buf, int length)
ByteInputStream(byte[] buf, int offset, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
getBytes()
int
getCount()
void
setBuf(byte[] buf)
-
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
-
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
getCount
public int getCount()
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classByteArrayInputStream
- Throws:
IOException
-
setBuf
public void setBuf(byte[] buf)
-
-