public class StringUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
convertCharsToBytes(char[] chars)
Converts an array of unsigned 16bit numbers to an array of bytes.
|
static byte[] |
escapeString(byte[] bytes)
Escapes a byte array according to the PDF conventions.
|
static void |
escapeString(byte[] bytes, ByteBuffer content)
Escapes a byte array according to the PDF conventions.
|
public static byte[] escapeString(byte[] bytes)
byte
array according to the PDF conventions.
bytes
- the byte
array to escape
byte
array
public static void escapeString(byte[] bytes, ByteBuffer content)
byte
array according to the PDF conventions.
bytes
- the byte
array to escape
content
- the content
public static byte[] convertCharsToBytes(char[] chars)
chars
- the array of 16bit numbers that should be converted
Copyright © 1998–2019. All rights reserved.