org.apache.camel.converter.stream
Class FileInputStreamCache
java.lang.Object
java.io.InputStream
org.apache.camel.converter.stream.FileInputStreamCache
- All Implemented Interfaces:
- Closeable, StreamCache
public class FileInputStreamCache
- extends InputStream
- implements StreamCache
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileInputStreamCache
public FileInputStreamCache(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
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
writeTo
public void writeTo(OutputStream os)
throws IOException
- Description copied from interface:
StreamCache
- Writes the stream to the given output
- Specified by:
writeTo
in interface StreamCache
- Parameters:
os
- the destination to write to
- Throws:
IOException
- is thrown if write fails
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
getInputStream
protected InputStream getInputStream()
Apache CAMEL