|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--java.io.FilterInputStream
|
+--com.sun.jimi.core.decoder.png.MeteredInputStream
| Fields inherited from class java.io.FilterInputStream |
in |
| Constructor Summary | |
MeteredInputStream(java.io.InputStream in,
int size)
|
|
| Method Summary | |
int |
available()
Returns the number of bytes that can be read without blocking. |
void |
close()
Does NOT close the input stream. |
void |
mark(int readlimit)
Marks the current position in the input stream. |
boolean |
markSupported()
Returns true if this stream type supports mark/reset. |
int |
read()
Reads a byte. |
int |
read(byte[] b)
Reads into an array of bytes. |
int |
read(byte[] b,
int off,
int len)
Reads into an array of bytes. |
void |
reset()
Repositions the stream to the last marked position. |
long |
skip(long n)
Skips bytes of input. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public MeteredInputStream(java.io.InputStream in,
int size)
| Method Detail |
public final int read()
throws java.io.IOException
public final int read(byte[] b)
throws java.io.IOException
b - the buffer into which the data is read
public final int read(byte[] b,
int off,
int len)
throws java.io.IOException
b - the buffer into which the data is readoff - the start offset of the datalen - the maximum number of bytes read
public final long skip(long n)
throws java.io.IOException
n - bytes to be skipped
public final int available()
throws java.io.IOException
public final void close()
throws java.io.IOException
public final void mark(int readlimit)
readlimit - the maximum limit of bytes allowed tobe read before the
mark position becomes invalid.
public final void reset()
throws java.io.IOException
public final boolean markSupported()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||