public static class Triplet.Undefined extends Triplet
Triplet.Undefined triplet is used when problem occur with corrupted AFP Data. The tripletData field contains the entire of the data. The Triplet.TripletID field contains
Triplet.TripletID.Undefined and is not read from the data given to decodeAFP(byte[],
int, int, AFPParserConfiguration), nor is it written by writeAFP(OutputStream,
AFPParserConfiguration). writeAFP(OutputStream,
AFPParserConfiguration) simple writes the data contained in field tripletData. In
addition it resets the value of the length field.Triplet.AreaDefinition, Triplet.AttributeQualifier, Triplet.AttributeValue, Triplet.CharacterRotation, Triplet.CMRTagFidelity, Triplet.CodedGraphicCharacterSetGlobalID, Triplet.ColorFidelity, Triplet.ColorManagementResourceDescriptor, Triplet.ColorSpecification, Triplet.Comment, Triplet.DataObjectFontDescriptor, Triplet.DescriptorPosition, Triplet.DeviceAppearance, Triplet.EncodingSchemeID, Triplet.ExtendedResourceLocalIdentifier, Triplet.FinishingFidelity, Triplet.FinishingOperation, Triplet.FontCodedGraphicCharacterSetGlobalID, Triplet.FontDescriptorSpecification, Triplet.FontFidelity, Triplet.FontHorizontalScaleFactor, Triplet.FontResolutionAndMetricTechnology, Triplet.FullyQualifiedName, Triplet.GlobalID_Format, Triplet.GlobalID_Use, Triplet.ImageResolution, Triplet.IMMInsertionTriplet, Triplet.LineDataObjectPositionMigration, Triplet.LocaleSelector, Triplet.LocalObjectDateAndTimeStamp, Triplet.MappingOption, Triplet.MeasurementUnits, Triplet.MediaEjectControl, Triplet.MediaFidelity, Triplet.MediumMapPageNumber, Triplet.MediumOrientation, Triplet.MODCAInterchangeSet, Triplet.ObjectAreaSize, Triplet.ObjectByteExtent, Triplet.ObjectByteOffset, Triplet.ObjectChecksum, Triplet.ObjectClassification, Triplet.ObjectContainerPresentationSpaceSize, Triplet.ObjectCount, Triplet.ObjectFunctionSetSpecification_Retired, Triplet.ObjectOffset, Triplet.ObjectOriginIdentifier, Triplet.ObjectStructuredFieldExtent, Triplet.ObjectStructuredFieldOffset, Triplet.PageOverlayConditionalProcessing, Triplet.PagePositionInformation, Triplet.ParameterValue, Triplet.PresentationControl, Triplet.PresentationSpaceMixingRule, Triplet.PresentationSpaceResetMixing, Triplet.RenderingIntent, Triplet.ResourceLocalIdentifier, Triplet.ResourceObjectInclude, Triplet.ResourceObjectType, Triplet.ResourceSectionNumber, Triplet.ResourceUsageAttribute, Triplet.TextFidelity, Triplet.TextOrientation, Triplet.TonerSaver, Triplet.TripletID, Triplet.Undefined, Triplet.UniversalDateAndTimeStamp, Triplet.UP3iFinishingOperationUNFORTUNATE_TRIPLETID| Constructor and Description |
|---|
Undefined() |
| 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. |
AFPParserException |
getParsingException() |
byte[] |
getTripletData() |
void |
setParsingException(AFPParserException parsingException) |
void |
setTripletData(byte[] tripletData) |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
getLength, getTripletID, setLength, setTripletIDpublic void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteabledecodeAFP in class TripletsfData - 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
IAFPDecodeableWriteableos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.public byte[] getTripletData()
public void setTripletData(byte[] tripletData)
public AFPParserException getParsingException()
public void setParsingException(AFPParserException parsingException)