public final class OpenTypeFormat extends FormatBase implements ISignedFormat
Represents an OpenType font format file.
Constructor and Description |
---|
OpenTypeFormat(InputStream input) |
OpenTypeFormat(String fileName)
Initializes a new instance of the
OpenTypeFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes writable metadata properties associated with the file.
|
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 an array containing the OpenType font metadata package.
|
int |
getType()
Gets the type of the loaded file.
|
boolean |
hasDigitalSignatures()
Gets a value indicating whether the document contains a
DigitalSignature . |
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public OpenTypeFormat(String fileName)
Initializes a new instance of the OpenTypeFormat
class.
fileName
- A string that contains the full name of the file from which to create an OpenTypeFormat
instance.public OpenTypeFormat(InputStream input)
public int getType()
Gets the type of the loaded file.
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 writable metadata properties associated with the file. Metadata cleaning is not supported for this format.
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.
<a href="ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc">ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-7.asc</a>
.
For more information about counter-signatures, see <a href="ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc">ftp://ftp.rsa.com/pub/pkcs/ascii/pkcs-9.asc</a>
.
public final OpenTypeMetadata[] getFontInfo()
Gets an array containing the OpenType font metadata package.
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.