Class FileBasedScatterGatherBackingStore
java.lang.Object
org.apache.commons.compress.parallel.FileBasedScatterGatherBackingStore
- All Implemented Interfaces:
Closeable,AutoCloseable,ScatterGatherBackingStore
ScatterGatherBackingStore that is backed by a path.
- Since:
- 1.10
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance for the given path. -
Method Summary
-
Constructor Details
-
FileBasedScatterGatherBackingStore
- Throws:
FileNotFoundException
-
FileBasedScatterGatherBackingStore
Constructs a new instance for the given path.- Parameters:
target- The path to offload compressed data into.- Throws:
FileNotFoundException- if the file doesn't exist- Since:
- 1.22
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
closeForWriting
Description copied from interface:ScatterGatherBackingStoreCloses this backing store for further writing.- Specified by:
closeForWritingin interfaceScatterGatherBackingStore- Throws:
IOException- when something fails
-
getInputStream
Description copied from interface:ScatterGatherBackingStoreAn input stream that contains the scattered payload- Specified by:
getInputStreamin interfaceScatterGatherBackingStore- Returns:
- An InputStream, should be closed by the caller of this method.
- Throws:
IOException- when something fails
-
writeOut
Description copied from interface:ScatterGatherBackingStoreWrites a piece of payload.- Specified by:
writeOutin interfaceScatterGatherBackingStore- Parameters:
data- the data to writeoffset- offset inside data to start writing fromlength- the amount of data to write- Throws:
IOException- when something fails
-