public final class Type1FontUtil extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
charstringDecrypt(byte[] buffer,
int n)
Decrypt charstring.
|
static byte[] |
charstringEncrypt(byte[] buffer,
int n)
Encrypt charstring.
|
static byte[] |
eexecDecrypt(byte[] buffer)
Decrypt eexec.
|
static byte[] |
eexecEncrypt(byte[] buffer)
Encrypt eexec.
|
static byte[] |
hexDecode(String string)
Converts a string representing a hex value into a byte array.
|
static String |
hexEncode(byte[] bytes)
Converts a byte-array into a string with the corresponding hex value.
|
public static String hexEncode(byte[] bytes)
bytes
- the byte arraypublic static byte[] hexDecode(String string)
string
- the string representing the hex valuepublic static byte[] eexecEncrypt(byte[] buffer)
buffer
- the given datapublic static byte[] charstringEncrypt(byte[] buffer, int n)
buffer
- the given datan
- blocksize?public static byte[] eexecDecrypt(byte[] buffer)
buffer
- the given encrypted datapublic static byte[] charstringDecrypt(byte[] buffer, int n)
buffer
- the given encrypted datan
- blocksize?Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.