public class CPD_CodePageDescriptor extends StructuredField
| Modifier and Type | Class and Description |
|---|---|
static class |
CPD_CodePageDescriptor.EncodingScheme |
| Modifier and Type | Field and Description |
|---|---|
short |
graphicCharacterGIDLength
This is the length of the IBM registered GCGID (AFP uses the eight-character identifier
format), or a user-assigned GCGID.
|
| Constructor and Description |
|---|
CPD_CodePageDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
Decodes the given AFP data.
Parameter length specifies the length in bytes of the data to be decoded, beginning with position offset. |
java.lang.String |
getCodePageDescription() |
int |
getCodePageGID() |
CPD_CodePageDescriptor.EncodingScheme |
getEncodingScheme() |
short |
getGraphicCharacterGIDLength() |
int |
getGraphicCharacterSetGID() |
long |
getNumberOfCodedGraphicCharactersAssigned() |
void |
setCodePageDescription(java.lang.String codePageDescription) |
void |
setCodePageGID(int codePageGID) |
void |
setEncodingScheme(CPD_CodePageDescriptor.EncodingScheme encodingScheme) |
void |
setGraphicCharacterGIDLength(short graphicCharacterGIDLength) |
void |
setGraphicCharacterSetGID(int graphicCharacterSetGID) |
void |
setNumberOfCodedGraphicCharactersAssigned(long numberOfCodedGraphicCharactersAssigned) |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
checkDataLength, getActualLength, getPadding, getStructuredFieldIntroducer, isBeginSF, isEndSF, isShallow, setPadding, setStructuredFieldIntroducer, toString, writeFullStructuredFieldpublic short graphicCharacterGIDLength
public void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteabledecodeAFP in class StructuredFieldsfData - contains the AFP data to decode.offset - the byte index position where the decoding should start.length - the length in bytes of the data to be decoded, beginning with position offset.config - contains parameter used for decoding.AFPParserException - if the given AFP data are invalid.public void writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
throws java.io.IOException
IAFPDecodeableWriteablewriteAFP in interface IAFPDecodeableWriteablewriteAFP in class StructuredFieldos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.public java.lang.String getCodePageDescription()
public void setCodePageDescription(java.lang.String codePageDescription)
public short getGraphicCharacterGIDLength()
public void setGraphicCharacterGIDLength(short graphicCharacterGIDLength)
public long getNumberOfCodedGraphicCharactersAssigned()
public void setNumberOfCodedGraphicCharactersAssigned(long numberOfCodedGraphicCharactersAssigned)
public int getGraphicCharacterSetGID()
public void setGraphicCharacterSetGID(int graphicCharacterSetGID)
public int getCodePageGID()
public void setCodePageGID(int codePageGID)
public CPD_CodePageDescriptor.EncodingScheme getEncodingScheme()
public void setEncodingScheme(CPD_CodePageDescriptor.EncodingScheme encodingScheme)