public final class FileInputStreamCache extends InputStream implements org.apache.camel.StreamCache
StreamCache for Files| Constructor 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() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
void |
writeTo(OutputStream os) |
mark, markSupportedpublic FileInputStreamCache(File file) throws FileNotFoundException
FileNotFoundExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreampublic void reset()
reset in interface org.apache.camel.StreamCachereset in class InputStreampublic void writeTo(OutputStream os) throws IOException
writeTo in interface org.apache.camel.StreamCacheIOExceptionpublic org.apache.camel.StreamCache copy(org.apache.camel.Exchange exchange)
throws IOException
copy in interface org.apache.camel.StreamCacheIOExceptionpublic boolean inMemory()
inMemory in interface org.apache.camel.StreamCachepublic long length()
length in interface org.apache.camel.StreamCachepublic int available()
throws IOException
available in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionprotected InputStream getInputStream() throws IOException
IOExceptionApache Camel