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 (DataStreamSupporter.getDataStreamContainer() /DataStreamSupporter.setDataStreamContainer(StreamContainer) ). |
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 readig is required.
|
void |
save()
Saves the object's data to the current
DataStreamSupporter . |
void |
save(OutputStream outputStream)
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)
Gets the object's data stream.
|
dispose, getDisposed
public final StreamContainer getDataStreamContainer()
Gets the object's data stream.
Value: The object's data stream.public final void setDataStreamContainer(StreamContainer value)
Gets 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 readig is required.
Value:true
if object's data is cached; otherwise, false
.public abstract void cacheData()
Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer
(DataStreamSupporter.getDataStreamContainer()
/DataStreamSupporter.setDataStreamContainer(StreamContainer)
).
public void save()
Saves the object's data to the current DataStreamSupporter
.
public final void save(OutputStream outputStream)
Saves the object's data to the specified stream.
outputStream
- The stream to save the object's data to.public final 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.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.