|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.ByteArrayInputStream
| Field Summary | |
protected byte[] |
buf
The buffer |
protected int |
count
One greater than the highest index available in the buffer |
protected int |
mark
The currently marked position in the stream |
protected int |
pos
The position in the buffer |
| Constructor Summary | |
ByteArrayInputStream(byte[] buf)
Create a new input stream |
|
ByteArrayInputStream(byte[] buf,
int offset,
int length)
Create a new input stream using a range of the buffer |
|
| Method Summary | |
int |
available()
How many bytes are available in the buffer without blocking? |
void |
close()
Close the stream |
void |
mark(int readlimit)
make the stream |
boolean |
markSupported()
Is mark supported |
int |
read()
read a byte from the stream without blocking |
int |
read(byte[] buffer,
int offset,
int length)
read bytes from the stream without blocking |
void |
reset()
reset the buffer to its marked position |
long |
skip(long n)
skip a number of bytes in the stream |
| Methods inherited from class java.io.InputStream |
read |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected byte[] buf
protected int count
protected int mark
protected int pos
| Constructor Detail |
public ByteArrayInputStream(byte[] buf)
buf - The buffer to use
public ByteArrayInputStream(byte[] buf,
int offset,
int length)
buf - The bufferoffset - the offset into the bufferlength - the length of the buffer| Method Detail |
public int available()
available in class InputStream
public void close()
throws IOException
close in class InputStreamIOException - if an IO error occurspublic void mark(int readlimit)
mark in class InputStreamreadlimit - The number of bytes that can be read while still
remembering the markpublic boolean markSupported()
markSupported in class InputStreampublic int read()
read in interface Readableread in class InputStream
public int read(byte[] buffer,
int offset,
int length)
read in interface Readableread in class InputStreambuffer - The buffer to read tooffset - The offset into the buffer to writelength - The length of the buffer
public void reset()
reset in class InputStream
public long skip(long n)
throws IOException
skip in interface Readableskip in class InputStreamn - the number of bytes to skip
IOException - if the stream is closed
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||