Package org.apache.jackrabbit.vault.fs
Class VaultFileInputStream
java.lang.Object
java.io.InputStream
org.apache.jackrabbit.vault.fs.VaultFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Implements an input stream on a jcr file file. It accesses the artifact of the
platform file an wraps either it's input stream or provides one using a tmp
file.
If possible, use the
VaultFileImpl.getArtifact() directly.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new input stream on the given file. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Constructor Details
-
VaultFileInputStream
Creates a new input stream on the given file. If the file is a directory an IOException is thrown.- Parameters:
file- the file- Throws:
IOException- if an I/O error occurs.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-