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:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- ByteArrayIOFileStream
public class ByteArrayIOFileStream.ByteArrayIOFileInputStream extends ByteArrayIOStream.ByteArrayIOInputStream
bytearrayinputstream that allows duplication without copying
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidcloseAll()close the underlying filebyte[]getBuf()longgetCount()ByteArrayIOStream.ByteArrayIOInputStreamgetNewStream()get a new input stream that starts at current posvoidmark(int readAheadLimit)booleanmarkSupported()intread()intread(byte[] b, int off, int len)voidreset()voidseek(long pos)throws JDFException if an IOException occurredlongskip(long n)longtell()java.lang.StringtoString()-
Methods inherited from class org.cip4.jdflib.util.ByteArrayIOStream.ByteArrayIOInputStream
asString
-
-
-
-
Method Detail
-
getNewStream
public ByteArrayIOStream.ByteArrayIOInputStream getNewStream()
get a new input stream that starts at current pos- Overrides:
getNewStreamin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classByteArrayIOStream.ByteArrayIOInputStream- See Also:
Object.toString()
-
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:
ByteArrayIOStream.ByteArrayIOInputStream.seek(long)
-
tell
public long tell()
- Overrides:
tellin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
- See Also:
ByteArrayIOStream.ByteArrayIOInputStream.tell()
-
getBuf
public byte[] getBuf()
- Overrides:
getBufin classByteArrayIOStream.ByteArrayIOInputStream- Returns:
-
read
public int read()
- Overrides:
readin classjava.io.ByteArrayInputStream
-
read
public int read(byte[] b, int off, int len)- Overrides:
readin classjava.io.ByteArrayInputStream
-
skip
public long skip(long n)
- Overrides:
skipin classjava.io.ByteArrayInputStream
-
available
public int available()
- Overrides:
availablein classjava.io.ByteArrayInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classjava.io.ByteArrayInputStream
-
mark
public void mark(int readAheadLimit)
- Overrides:
markin classjava.io.ByteArrayInputStream
-
reset
public void reset()
- Overrides:
resetin classjava.io.ByteArrayInputStream
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.ByteArrayInputStream- Throws:
java.io.IOException
-
closeAll
public void closeAll()
close the underlying file
-
-