Package org.cip4.jdflib.util
Class ByteArrayIOFileStream.ByteArrayIOFileInputStream
java.lang.Object
java.io.InputStream
java.io.ByteArrayInputStream
org.cip4.jdflib.util.ByteArrayIOStream.ByteArrayIOInputStream
org.cip4.jdflib.util.ByteArrayIOFileStream.ByteArrayIOFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- ByteArrayIOFileStream
public class ByteArrayIOFileStream.ByteArrayIOFileInputStream
extends ByteArrayIOStream.ByteArrayIOInputStream
bytearrayinputstream that allows duplication without copying
-
Field Summary
Fields inherited from class java.io.ByteArrayInputStream
buf, count, mark, pos -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidcloseAll()close the underlying filebyte[]getBuf()longgetCount()get a new input stream that starts at current posvoidmark(int readAheadLimit) booleanintread()intread(byte[] b, int off, int len) voidreset()voidseek(long pos) throws JDFException if an IOException occurredlongskip(long n) longtell()toString()Methods inherited from class org.cip4.jdflib.util.ByteArrayIOStream.ByteArrayIOInputStream
asStringMethods inherited from class java.io.ByteArrayInputStream
readAllBytes, readNBytes, transferToMethods inherited from class java.io.InputStream
nullInputStream, read, readNBytes, skipNBytes
-
Method Details
-
getNewStream
get a new input stream that starts at current pos- Overrides:
getNewStreamin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
-
toString
- Overrides:
toStringin classByteArrayIOStream.ByteArrayIOInputStream- See Also:
-
getCount
public long getCount()- Overrides:
getCountin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
-
seek
public void seek(long pos) throws JDFException if an IOException occurred- Overrides:
seekin classByteArrayIOStream.ByteArrayIOInputStream- See Also:
-
tell
public long tell()- Overrides:
tellin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
- See Also:
-
getBuf
public byte[] getBuf()- Overrides:
getBufin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
-
read
public int read()- Overrides:
readin classByteArrayInputStream
-
read
public int read(byte[] b, int off, int len) - Overrides:
readin classByteArrayInputStream
-
skip
public long skip(long n) - Overrides:
skipin classByteArrayInputStream
-
available
public int available()- Overrides:
availablein classByteArrayInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classByteArrayInputStream
-
mark
public void mark(int readAheadLimit) - Overrides:
markin classByteArrayInputStream
-
reset
public void reset()- Overrides:
resetin classByteArrayInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classByteArrayInputStream- Throws:
IOException
-
closeAll
public void closeAll()close the underlying file
-