FileOpenSource

Inheritance: java.lang.Object, com.aspose.imaging.Source, com.aspose.imaging.sources.FileSource

public final class FileOpenSource extends FileSource

Represents a file source for opening.

Constructors

ConstructorDescription
FileOpenSource(String filePath)Initializes a new instance of the FileOpenSource class.

Methods

MethodDescription
getFilePath()Gets the file path to open.
isTemporal()Gets a value indicating whether file will be temporal.
getStreamContainer()Gets the stream container.

FileOpenSource(String filePath)

public FileOpenSource(String filePath)

Initializes a new instance of the FileOpenSource class.

Parameters:

ParameterTypeDescription
filePathjava.lang.StringThe file path to open.

getFilePath()

public String getFilePath()

Gets the file path to open.

Value: The file path to open.

Returns: java.lang.String

isTemporal()

public boolean isTemporal()

Gets a value indicating whether file will be temporal.

Value: true if file will be temporal; otherwise, false.

Returns: boolean

getStreamContainer()

public StreamContainer getStreamContainer()

Gets the stream container.

Returns: StreamContainer - the stream container.

Use with caution. You will need to dispose the stream container after retrieval.