FontFileDefinition
Contents
[
Hide
]Inheritance: java.lang.Object
public class FontFileDefinition
Represents Font file definition.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
streamSource | StreamSource | Font stream source. |
FontFileDefinition(String fileExtension, StreamSource streamSource)
public FontFileDefinition(String fileExtension, StreamSource streamSource)
Creates a file definition using file content only.
Parameters:
Parameter | Type | Description |
---|---|---|
fileExtension | java.lang.String | Font file extension. |
streamSource | StreamSource | Font 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:
Parameter | Type | Description |
---|---|---|
fileExtension | java.lang.String | Font file extension. |
streamSource | StreamSource | Font stream source. |
offset | long | Offset 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:
Parameter | Type | Description |
---|---|---|
fontFile | java.io.File | File 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.