org.apache.camel.converter.stream
Class FileInputStreamCache

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.camel.converter.stream.FileInputStreamCache
All Implemented Interfaces:
Closeable, StreamCache

public class FileInputStreamCache
extends InputStream
implements StreamCache


Constructor Summary
FileInputStreamCache(File file, CachedOutputStream cos)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 void reset()
          Resets the StreamCache for a new stream consumption.
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputStreamCache

public FileInputStreamCache(File file,
                            CachedOutputStream cos)
                     throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class InputStream

reset

public void reset()
Description copied from interface: StreamCache
Resets the StreamCache for a new stream consumption.

Specified by:
reset in interface StreamCache
Overrides:
reset in class InputStream

available

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

read

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


Copyright © 2009 Apache Software Foundation. All Rights Reserved.