public abstract class DataStreamSupporter extends DisposableObject
The data stream container.
Modifier and Type | Method and Description |
---|---|
abstract void |
cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying
DataStreamSupporter.DataStreamContainer . |
StreamContainer |
getDataStreamContainer()
Gets the object's data stream.
|
abstract boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
|
void |
save()
Saves the object's data to the current
DataStreamSupporter . |
void |
save(OutputStream stream)
Saves the object's data to the specified stream.
|
void |
save(RandomAccessFile file)
Saves the object's data to the specified stream.
|
void |
save(String filePath)
Saves the object's data to the specified file location.
|
void |
save(String filePath,
boolean overWrite)
Saves the object's data to the specified file location.
|
void |
setDataStreamContainer(StreamContainer value)
Sets the object's data stream.
|
close, dispose, getDisposed
public StreamContainer getDataStreamContainer()
Gets the object's data stream.
public void setDataStreamContainer(StreamContainer value)
Sets the object's data stream.
value
- The object's data stream.public abstract boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
public abstract void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer
.
public void save()
Saves the object's data to the current DataStreamSupporter
.
public void save(OutputStream stream)
Saves the object's data to the specified stream.
stream
- The stream to save the object's data to.public void save(RandomAccessFile file)
Saves the object's data to the specified stream.
file
- The stream to save the object's data to.public void save(String filePath)
Saves the object's data to the specified file location.
filePath
- The file path to save the object's data to.public void save(String filePath, boolean overWrite)
Saves the object's data to the specified file location.
filePath
- The file path to save the object's data to.overWrite
- if set to true
over write the file contents, otherwise append will occur.