public final class FileStreamContainer extends StreamContainer
Helper for file stream processing.
READ_WRITE_BYTES_COUNT
Modifier and Type | Method and Description |
---|---|
static FileStreamContainer |
createFileStream(String fileLocation,
boolean isTemporal)
Creates a new file stream.
|
String |
getFilePath()
Gets the file path.
|
boolean |
isCreated()
Gets a value indicating whether stream was created explicitly.
|
boolean |
isTemporal()
Gets or sets a value indicating whether stream is temporal.
|
static FileStreamContainer |
openFileStream(String fileLocation)
Opens an existing file stream.
|
void |
setTemporal(boolean value)
Sets a value indicating whether stream is temporal.
|
static com.aspose.ms.System.IO.FileStream |
to_FileStream(FileStreamContainer fileStreamContainer)
Performs an explicit conversion from
com.aspose.imaging.FileStreamContainer to System.IO.FileStream . |
static com.aspose.ms.System.IO.Stream |
to_Stream(FileStreamContainer fileStreamContainer)
Performs an explicit conversion from
com.aspose.imaging.FileStreamContainer to System.IO.Stream . |
canRead, canSeek, canWrite, flush, getLength, getPosition, getStream, getSyncRoot, isStreamDisposedOnClose, read, read, readByte, save, save, save, save, save, save, seek, seekBegin, setLength, setPosition, to_Stream, toBytes, toBytes, write, write, writeByte, writeTo, writeTo
close, dispose, getDisposed
public boolean isTemporal()
Gets or sets a value indicating whether stream is temporal.
true
if stream is temporal; otherwise, false
.
A temporal stream will remove itself when disposed. If the stream is memory based this property has no effect. The stream can be marked as temporal or persistent in case it was created explicitly otherwise the appropriate exception is thrown.
public void setTemporal(boolean value)
Sets a value indicating whether stream is temporal.
value
- true
if stream is temporal; otherwise, false
.
A temporal stream will remove itself when disposed. If the stream is memory based this property has no effect. The stream can be marked as temporal or persistent in case it was created explicitly otherwise the appropriate exception is thrown.
public boolean isCreated()
Gets a value indicating whether stream was created explicitly.
true
if stream was created explicitly; otherwise, false
.public String getFilePath()
Gets the file path.
public static com.aspose.ms.System.IO.Stream to_Stream(FileStreamContainer fileStreamContainer)
Performs an explicit conversion from com.aspose.imaging.FileStreamContainer
to System.IO.Stream
.
fileStreamContainer
- The file stream container.public static com.aspose.ms.System.IO.FileStream to_FileStream(FileStreamContainer fileStreamContainer)
Performs an explicit conversion from com.aspose.imaging.FileStreamContainer
to System.IO.FileStream
.
fileStreamContainer
- The file stream container.public static FileStreamContainer createFileStream(String fileLocation, boolean isTemporal)
Creates a new file stream.
fileLocation
- The file location.isTemporal
- If set to true
the file stream container is temporal.public static FileStreamContainer openFileStream(String fileLocation)
Opens an existing file stream. If file stream does not exist the appropriate exception is thrown.
fileLocation
- The file location.