net.jxta.util
Class MarkProhibitedFilterStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
net.jxta.util.MarkProhibitedFilterStream
- public class MarkProhibitedFilterStream
- extends FilterInputStream
Implements a filter which disables the mark() feature of an input stream.
Useful for when the stream is shared.
Method Summary |
void |
mark(int readlimit)
This method does nothing. |
boolean |
markSupported()
This method simply returns false. |
void |
reset()
This implementation always throws IOException since mark is not
supported. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkProhibitedFilterStream
public MarkProhibitedFilterStream(InputStream in)
- Creates a new instance of MarkProhibitedFilterStream
- Parameters:
in
- the stream which will be limited.
mark
public void mark(int readlimit)
-
This method does nothing.
reset
public void reset()
throws IOException
-
This implementation always throws IOException since mark is not
supported.
- Throws:
IOException
markSupported
public boolean markSupported()
-
This method simply returns false.