public class ASHexString extends ASString
| Constructor and Description |
|---|
ASHexString(byte[] bytes)
Constructor.
|
ASHexString(int[] numbers,
int bytesToUse,
int bytesToPad)
Construct an
ASHexString from an array of integers. |
ASHexString(int[] numbers,
int startIndex,
int endIndex,
int bytesToUse,
int bytesToPad) |
| Modifier and Type | Method and Description |
|---|---|
String |
asString()
Try to get a chars associated with a byte in this ASString.
|
byte[] |
getHex()
Returns hex value of string as byte array.
|
String |
toString()
Attempts to get a unicode representation for this unencoded string.
|
void |
write(OutputByteStream outputStream)
Writes the ASHexString in to the given OutputByteStream in the format expected by the PDF Spec.
|
void |
write(OutputStream outputStream)
Writes the ASHexString in to the given OutputStream in the format expected by the PDF Spec.
|
public ASHexString(byte[] bytes)
public ASHexString(int[] numbers,
int bytesToUse,
int bytesToPad)
throws PDFInvalidParameterException
ASHexString from an array of integers.numbers - numbers to use in constructing the ASHexStringbytesToUse - number of bytes to use from each number starting with the LSB. Must be from 1 to 4.bytesToPad - number of bytes to pad in front of each number beyond the number of bytes taken from each numberPDFInvalidParameterException - if the bytesToUse is not between 1 and 4public ASHexString(int[] numbers,
int startIndex,
int endIndex,
int bytesToUse,
int bytesToPad)
throws PDFInvalidParameterException
PDFInvalidParameterExceptionpublic byte[] getHex()
public void write(OutputStream outputStream) throws PDFIOException
outputStream - OutputStream to write to.PDFIOExceptionASStringpublic void write(OutputByteStream outputStream) throws PDFIOException
write in class ASStringoutputStream - OutputStream to write to.PDFIOExceptionASStringpublic String asString()
ASStringCopyright © 2010 - 2020 Adobe. All Rights Reserved