public final class FileInputStreamCache extends InputStream implements org.apache.camel.StreamCache
StreamCache
for File
sConstructor and Description |
---|
FileInputStreamCache(File file)
Only for testing purposes.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
org.apache.camel.StreamCache |
copy(org.apache.camel.Exchange exchange) |
protected InputStream |
getInputStream() |
boolean |
inMemory() |
long |
length() |
int |
read() |
void |
reset() |
void |
writeTo(OutputStream os) |
mark, markSupported, read, read, skip
public FileInputStreamCache(File file) throws FileNotFoundException
FileNotFoundException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public void reset()
reset
in interface org.apache.camel.StreamCache
reset
in class InputStream
public void writeTo(OutputStream os) throws IOException
writeTo
in interface org.apache.camel.StreamCache
IOException
public org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange) throws IOException
copy
in interface org.apache.camel.StreamCache
IOException
public boolean inMemory()
inMemory
in interface org.apache.camel.StreamCache
public long length()
length
in interface org.apache.camel.StreamCache
public int available() throws IOException
available
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
protected InputStream getInputStream() throws IOException
IOException
Apache Camel