FileSystemStreamSource

Inheritance: java.lang.Object, com.aspose.font.StreamSource

public class FileSystemStreamSource extends StreamSource

Represents a stream source based on file system.

Constructors

ConstructorDescription
FileSystemStreamSource(String fileName)Initializes new FileSystemStreamSource object.

Methods

MethodDescription
getFileName()Gets file name.
setFileName(String value)Sets file name.
getFontStream()Returns Font file stream.
deepClone()Clones the FileSystemStreamSource object.

FileSystemStreamSource(String fileName)

public FileSystemStreamSource(String fileName)

Initializes new FileSystemStreamSource object.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringFile name.

getFileName()

public String getFileName()

Gets file name.

Returns: java.lang.String - File name.

setFileName(String value)

public void setFileName(String value)

Sets file name.

Parameters:

ParameterTypeDescription
valuejava.lang.StringFile name.

getFontStream()

public InputStream getFontStream()

Returns Font file stream. Don’t forget to close the stream after use.

Returns: java.io.InputStream - Font file stream.

deepClone()

public Object deepClone()

Clones the FileSystemStreamSource object.

Returns: java.lang.Object - Copy of FileSystemStreamSource object.