public final class OpenTypeFormat extends FormatBase implements ISignedFormat
Represents OpenType font format files.
FormatBase
Constructor and Description |
---|
OpenTypeFormat(InputStream input) |
OpenTypeFormat(String filePath)
Initializes a new instance of the
OpenTypeFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes or resets metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
Integer |
getDigitalSignatureFlags()
Gets the digital signature flags.
|
Cms[] |
getDigitalSignatures()
Gets the PKCS#7 or PKCS#9 packet digital signature Blocks.
|
OpenTypeMetadata[] |
getFontInfo()
Gets the OpenType font metadata array.
|
int |
getType()
Gets the document type.
|
boolean |
hasDigitalSignatures()
Gets a value indicating whether the document contains a
DigitalSignature . |
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public OpenTypeFormat(String filePath)
Initializes a new instance of the OpenTypeFormat
class.
filePath
- The absolute path to the file.public OpenTypeFormat(InputStream input)
public int getType()
Gets the document type.
getType
in class FormatBase
public final boolean hasDigitalSignatures()
Gets a value indicating whether the document contains a DigitalSignature
.
hasDigitalSignatures
in interface ISignedFormat
true
if the document has digital signatures; otherwise, false
.public void cleanMetadata()
Removes or resets metadata.
cleanMetadata
in class FormatBase
public final Integer getDigitalSignatureFlags()
Gets the digital signature flags.
public final Cms[] getDigitalSignatures()
Gets the PKCS#7 or PKCS#9 packet digital signature Blocks.
public final OpenTypeMetadata[] getFontInfo()
Gets the OpenType font metadata array.
protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources; false
to release only unmanaged resources.Copyright © 2019. All rights reserved.