org.apache.sanselan.util
Class CachingInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.sanselan.util.CachingInputStream
All Implemented Interfaces:
java.io.Closeable

public class CachingInputStream
extends java.io.InputStream


Constructor Summary
CachingInputStream(java.io.InputStream is)
           
 
Method Summary
 int available()
           
 void close()
           
 byte[] getCache()
           
 int read()
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingInputStream

public CachingInputStream(java.io.InputStream is)
Method Detail

getCache

public byte[] getCache()

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()
              throws java.io.IOException
Overrides:
available in class java.io.InputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.