Top Description Constructors Methods
org.apache.fontbox.cff

public final Class Type1FontUtil

extends Object
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Locale

Deprecated

This class isn't used and will be removed in 4.0.0.

This class contains some helper methods handling Type1-Fonts.
Author
Villu Ruusmann

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static byte[]

Returns:

the decrypted data
charstringDecrypt
(byte[]
the given encrypted data
buffer
,
int
blocksize?
n
)

Decrypt charstring.

public static byte[]

Returns:

the encrypted data
charstringEncrypt
(byte[]
the given data
buffer
,
int
blocksize?
n
)

Encrypt charstring.

private static byte[]
decrypt(byte[] ciphertextBytes, int r, int n)

public static byte[]

Returns:

the decrypted data
eexecDecrypt
(byte[]
the given encrypted data
buffer
)

Decrypt eexec.

public static byte[]

Returns:

the encrypted data
eexecEncrypt
(byte[]
the given data
buffer
)

Encrypt eexec.

private static byte[]
encrypt(byte[] plaintextBytes, int r, int n)

public static byte[]

Returns:

the hex value as byte array
hexDecode
(String
the string representing the hex value
string
)

Converts a string representing a hex value into a byte array.

public static String

Returns:

the string with the hex value
hexEncode
(byte[]
the byte array
bytes
)

Converts a byte-array into a string with the corresponding hex value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Type1FontUtilback to summary
private Type1FontUtil()

Method Detail

charstringDecryptback to summary
public static byte[] charstringDecrypt(byte[] buffer, int n)

Decrypt charstring.

Parameters
buffer:byte[]

the given encrypted data

n:int

blocksize?

Returns:byte[]

the decrypted data

charstringEncryptback to summary
public static byte[] charstringEncrypt(byte[] buffer, int n)

Encrypt charstring.

Parameters
buffer:byte[]

the given data

n:int

blocksize?

Returns:byte[]

the encrypted data

decryptback to summary
private static byte[] decrypt(byte[] ciphertextBytes, int r, int n)
eexecDecryptback to summary
public static byte[] eexecDecrypt(byte[] buffer)

Decrypt eexec.

Parameters
buffer:byte[]

the given encrypted data

Returns:byte[]

the decrypted data

eexecEncryptback to summary
public static byte[] eexecEncrypt(byte[] buffer)

Encrypt eexec.

Parameters
buffer:byte[]

the given data

Returns:byte[]

the encrypted data

encryptback to summary
private static byte[] encrypt(byte[] plaintextBytes, int r, int n)
hexDecodeback to summary
public static byte[] hexDecode(String string)

Converts a string representing a hex value into a byte array.

Parameters
string:String

the string representing the hex value

Returns:byte[]

the hex value as byte array

hexEncodeback to summary
public static String hexEncode(byte[] bytes)

Converts a byte-array into a string with the corresponding hex value.

Parameters
bytes:byte[]

the byte array

Returns:String

the string with the hex value