|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.InputStream ikrs.io.BytePositionInputStream
public class BytePositionInputStream
Constructor Summary | |
---|---|
BytePositionInputStream(java.io.InputStream in)
|
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
long |
getAbsoluteBytePosition()
This method returns the absolute number of bytes that were already read. |
long |
getBytePosition()
This method returns the number of bytes that were already read (unless the 'resetBytePosition()' method was called). |
void |
mark(int readlimit)
The mark-method is a bit tricky! This implementation does NOT support marks and throws an IOException if called. |
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
resetBytePosition()
This method resets the current byte position to 0. |
long |
skip(long n)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BytePositionInputStream(java.io.InputStream in) throws java.lang.NullPointerException
java.lang.NullPointerException
Method Detail |
---|
public long getBytePosition()
public long resetBytePosition()
public long getAbsoluteBytePosition()
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |