ro.isdc.wro.util.io
Class UnclosableBufferedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by java.io.BufferedInputStream
              extended by ro.isdc.wro.util.io.UnclosableBufferedInputStream
All Implemented Interfaces:
Closeable

public class UnclosableBufferedInputStream
extends BufferedInputStream

An input stream which allows to be read multiple times. The only condition is to call reset or close method after reading it.

Author:
Alex Objelean

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
UnclosableBufferedInputStream(byte[] bytes)
           
UnclosableBufferedInputStream(InputStream in)
           
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnclosableBufferedInputStream

public UnclosableBufferedInputStream(InputStream in)

UnclosableBufferedInputStream

public UnclosableBufferedInputStream(byte[] bytes)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class BufferedInputStream
Throws:
IOException


Copyright © 2008-2013. All Rights Reserved.