public class FileBasedScatterGatherBackingStore extends java.lang.Object implements ScatterGatherBackingStore
Constructor and Description |
---|
FileBasedScatterGatherBackingStore(java.io.File target) |
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.FileNotFoundException
public java.io.InputStream getInputStream() throws java.io.IOException
ScatterGatherBackingStore
getInputStream
in interface ScatterGatherBackingStore
java.io.IOException
- when something failspublic void closeForWriting() throws java.io.IOException
ScatterGatherBackingStore
closeForWriting
in interface ScatterGatherBackingStore
java.io.IOException
- when something failspublic void writeOut(byte[] data, int offset, int length) throws java.io.IOException
ScatterGatherBackingStore
writeOut
in interface ScatterGatherBackingStore
data
- 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.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved