Project JXTA

net.jxta.util
Class MarkProhibitedFilterStream

java.lang.Object
  extended byjava.io.InputStream
      extended byjava.io.FilterInputStream
          extended bynet.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.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
MarkProhibitedFilterStream(InputStream in)
          Creates a new instance of MarkProhibitedFilterStream
 
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.io.FilterInputStream
available, close, read, read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkProhibitedFilterStream

public MarkProhibitedFilterStream(InputStream in)
Creates a new instance of MarkProhibitedFilterStream

Parameters:
in - the stream which will be limited.
Method Detail

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.


JXTA J2SE