public class FileBasedScatterGatherBackingStore extends Object implements ScatterGatherBackingStore
| Constructor and Description |
|---|
FileBasedScatterGatherBackingStore(File target) |
FileBasedScatterGatherBackingStore(Path target)
Constructs a new instance for the given path.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeForWriting()
Closes this backing store for further writing.
|
InputStream |
getInputStream()
An input stream that contains the scattered payload
|
void |
writeOut(byte[] data,
int offset,
int length)
Writes a piece of payload.
|
public FileBasedScatterGatherBackingStore(File target) throws FileNotFoundException
FileNotFoundExceptionpublic FileBasedScatterGatherBackingStore(Path target) throws FileNotFoundException
target - The path to offload compressed data into.FileNotFoundException - if the file doesn't existpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeForWriting() throws IOException
ScatterGatherBackingStorecloseForWriting in interface ScatterGatherBackingStoreIOException - when something failspublic InputStream getInputStream() throws IOException
ScatterGatherBackingStoregetInputStream in interface ScatterGatherBackingStoreIOException - when something failspublic void writeOut(byte[] data, int offset, int length) throws IOException
ScatterGatherBackingStorewriteOut in interface ScatterGatherBackingStoredata - the data to writeoffset - offset inside data to start writing fromlength - the amount of data to writeIOException - when something failsCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.