public class FileBasedScatterGatherBackingStore extends Object implements ScatterGatherBackingStore
| Constructor and Description | 
|---|
| FileBasedScatterGatherBackingStore(File target) | 
| 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 InputStream getInputStream() throws IOException
ScatterGatherBackingStoregetInputStream in interface ScatterGatherBackingStoreIOException - when something failspublic void closeForWriting() throws IOException
ScatterGatherBackingStorecloseForWriting 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 failspublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.