org.w3c.jwput.tui
Class ByteCountInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.w3c.jwput.tui.ByteCountInputStream
- public class ByteCountInputStream
- extends java.io.InputStream
A Stream that can be monitored by a ByteCountListener
- See Also:
ByteCountListener
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ByteCountInputStream
public ByteCountInputStream(java.io.InputStream in,
long step)
available
public int available()
throws java.io.IOException
- Overrides:
- available in class java.io.InputStream
mark
public void mark(int readlimit)
- Overrides:
- mark in class java.io.InputStream
markSupported
public boolean markSupported()
- Overrides:
- markSupported in class java.io.InputStream
reset
public void reset()
throws java.io.IOException
- Overrides:
- reset in class java.io.InputStream
read
public int read()
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
- read in class java.io.InputStream
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
- skip in class java.io.InputStream
check
protected void check()
close
public void close()
throws java.io.IOException
- Overrides:
- close in class java.io.InputStream
getBytesRead
public long getBytesRead()
registerByteCountListener
public void registerByteCountListener(ByteCountListener listener)