Package org.smallmind.nutsnbolts.io
Class ByteArrayIOStream.ByteArrayInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.smallmind.nutsnbolts.io.ByteArrayIOStream.ByteArrayInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- ByteArrayIOStream
public class ByteArrayIOStream.ByteArrayInputStream extends InputStream
-
-
Constructor Summary
Constructors Constructor Description ByteArrayInputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voidmark(int readLimit)booleanmarkSupported()bytepeek(int index)intread()intread(byte[] b, int off, int len)byte[]readAvailable()voidreset()longskip(long n)-
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Method Detail
-
peek
public byte peek(int index) throws IOException- Throws:
IOException
-
readAvailable
public byte[] readAvailable() throws IOException- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
skip
public long skip(long n) throws IOException- Overrides:
skipin classInputStream- Throws:
IOException
-
available
public int available() throws IOException- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readLimit)
- Overrides:
markin classInputStream
-
reset
public void reset() throws IOException- Overrides:
resetin classInputStream- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-
markSupported
public boolean markSupported()
- Overrides:
markSupportedin classInputStream
-
-