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
ConstructorDescriptionCreates a new input stream on the given file. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, 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:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-