Class ResettableTempFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- org.apache.jackrabbit.core.data.db.TempFileInputStream
-
- org.apache.jackrabbit.core.data.db.ResettableTempFileInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ResettableTempFileInputStream extends TempFileInputStream
TempFileInputStream that can be reset in order to allow the ConnectionHelper to retry SQL execution in case of failure.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ResettableTempFileInputStream(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mark(int readlimit)
boolean
markSupported()
void
reset()
-
Methods inherited from class org.apache.jackrabbit.core.data.db.TempFileInputStream
close, finalize
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
ResettableTempFileInputStream
public ResettableTempFileInputStream(File file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
markSupported
public boolean markSupported()
- Overrides:
markSupported
in classFilterInputStream
-
mark
public void mark(int readlimit)
- Overrides:
mark
in classFilterInputStream
-
reset
public void reset() throws IOException
- Overrides:
reset
in classFilterInputStream
- Throws:
IOException
-
-