Class ByteReaderInputStream
java.lang.Object
java.io.InputStream
cool.scx.bytes.io.ByteReaderInputStream
- All Implemented Interfaces:
ByteReaderWrapper, Closeable, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidmark(int readlimit) booleanintread()intread(byte[] b, int off, int len) byte[]readNBytes(int len) voidreset()longtransferTo(OutputStream out) Methods inherited from class InputStream
available, nullInputStream, read, readAllBytes, readNBytes, skip, skipNBytes
-
Constructor Details
-
ByteReaderInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
public void reset()- Overrides:
resetin classInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
byteReader
- Specified by:
byteReaderin interfaceByteReaderWrapper
-