FontFileDefinition

Inheritance: java.lang.Object

public class FontFileDefinition

Represents Font file definition.

Constructors

ConstructorDescription
FontFileDefinition(StreamSource streamSource)Creates a file definition using file content only.
FontFileDefinition(String fileExtension, StreamSource streamSource)Creates a file definition using file content only.
FontFileDefinition(String fileExtension, StreamSource streamSource, long offset)Creates a file definition using file content only.
FontFileDefinition(File fontFile)Creates a file definition using font file (represented by File) and file content.

Methods

MethodDescription
getFileName()Gets File name.
getFileExtension()Gets File extension.
getStreamSource()Gets the stream source.
getOffset()Gets offset inside the stream.

FontFileDefinition(StreamSource streamSource)

public FontFileDefinition(StreamSource streamSource)

Creates a file definition using file content only.

Parameters:

ParameterTypeDescription
streamSourceStreamSourceFont stream source.

FontFileDefinition(String fileExtension, StreamSource streamSource)

public FontFileDefinition(String fileExtension, StreamSource streamSource)

Creates a file definition using file content only.

Parameters:

ParameterTypeDescription
fileExtensionjava.lang.StringFont file extension.
streamSourceStreamSourceFont stream source.

FontFileDefinition(String fileExtension, StreamSource streamSource, long offset)

public FontFileDefinition(String fileExtension, StreamSource streamSource, long offset)

Creates a file definition using file content only.

Parameters:

ParameterTypeDescription
fileExtensionjava.lang.StringFont file extension.
streamSourceStreamSourceFont stream source.
offsetlongOffset to font data in stream source.

FontFileDefinition(File fontFile)

public FontFileDefinition(File fontFile)

Creates a file definition using font file (represented by File) and file content.

Parameters:

ParameterTypeDescription
fontFilejava.io.FileFile object.

getFileName()

public String getFileName()

Gets File name.

Returns: java.lang.String - File name.

getFileExtension()

public String getFileExtension()

Gets File extension.

Returns: java.lang.String - File extension.

getStreamSource()

public StreamSource getStreamSource()

Gets the stream source.

Returns: StreamSource - The stream source.

getOffset()

public long getOffset()

Gets offset inside the stream.

Returns: long - Offset inside the stream.