public class FileBasedScatterGatherBackingStore extends java.lang.Object implements ScatterGatherBackingStore
| Constructor and Description |
|---|
FileBasedScatterGatherBackingStore(java.io.File target) |
FileBasedScatterGatherBackingStore(java.nio.file.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.
|
java.io.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(java.io.File target)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic FileBasedScatterGatherBackingStore(java.nio.file.Path target)
throws java.io.FileNotFoundException
target - The path to offload compressed data into.java.io.FileNotFoundException - if the file doesn't existpublic java.io.InputStream getInputStream()
throws java.io.IOException
ScatterGatherBackingStoregetInputStream in interface ScatterGatherBackingStorejava.io.IOException - when something failspublic void closeForWriting()
throws java.io.IOException
ScatterGatherBackingStorecloseForWriting in interface ScatterGatherBackingStorejava.io.IOException - when something failspublic void writeOut(byte[] data,
int offset,
int length)
throws java.io.IOException
ScatterGatherBackingStorewriteOut in interface ScatterGatherBackingStoredata - the data to writeoffset - offset inside data to start writing fromlength - the amount of data to writejava.io.IOException - when something failspublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved