Package org.cip4.jdflib.util
Class ByteArrayIOStream.ByteArrayIOInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.cip4.jdflib.util.ByteArrayIOStream.ByteArrayIOInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
ByteArrayIOFileStream.ByteArrayIOFileInputStream,SkipInputStream
- Enclosing class:
- ByteArrayIOStream
bytearrayinputstream that allows duplication without copying
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedByteArrayIOInputStream(byte[] buf, int count) ByteArrayIOInputStream(byte[] buf, int offset, int length) protectedcreates an input output stream class from any stream if is already is a buffered inputstream, no copy is made -
Method Summary
Methods inherited from class java.io.ByteArrayInputStream
available, close, mark, markSupported, read, read, readAllBytes, readNBytes, reset, skip, transferToMethods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Constructor Details
-
ByteArrayIOInputStream
public ByteArrayIOInputStream(byte[] buf, int offset, int length) - Parameters:
buf-offset-length-
-
ByteArrayIOInputStream
protected ByteArrayIOInputStream(byte[] buf, int count) - Parameters:
buf-count-
-
ByteArrayIOInputStream
creates an input output stream class from any stream if is already is a buffered inputstream, no copy is made- Parameters:
is- the inputstream to buffer
-
-
Method Details