public static class Triplet.LocaleSelector extends Triplet
The Locale Selector triplet is used to identify the end-user community for presentation text data. The locale information consists of an ISO-639 based language code, an ISO-15924 based script code, an ISO-3166 based region code, and an application-specific variant code. The encoding for all four parameters is UTF-16BE. Additional information on these parameters can be found at the following urls:
| Modifier and Type | Class and Description |
|---|---|
static class |
Triplet.LocaleSelector.LocalSelectorFlag |
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 |
|---|
LocaleSelector() |
| 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.util.EnumSet<Triplet.LocaleSelector.LocalSelectorFlag> |
getFlags() |
java.lang.String |
getLanguageCode() |
java.lang.String |
getRegionCode() |
byte |
getReserved2() |
byte[] |
getReserved28_35() |
java.lang.String |
getScriptCode() |
java.lang.String |
getVariantCode() |
void |
setFlag(Triplet.LocaleSelector.LocalSelectorFlag flag)
Sets the given flag and un-sets the corresponding mutual exclusive flags.
|
void |
setFlags(java.util.EnumSet<Triplet.LocaleSelector.LocalSelectorFlag> flags) |
void |
setLanguageCode(java.lang.String languageCode) |
void |
setRegionCode(java.lang.String regionCode) |
void |
setReserved2(byte reserved2) |
void |
setReserved28_35(byte[] reserved28_35) |
void |
setScriptCode(java.lang.String scriptCode) |
void |
setVariantCode(java.lang.String variantCode) |
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 getReserved2()
public void setReserved2(byte reserved2)
public java.util.EnumSet<Triplet.LocaleSelector.LocalSelectorFlag> getFlags()
public void setFlags(java.util.EnumSet<Triplet.LocaleSelector.LocalSelectorFlag> flags)
public void setFlag(Triplet.LocaleSelector.LocalSelectorFlag flag)
flag - flag to set.public java.lang.String getLanguageCode()
public void setLanguageCode(java.lang.String languageCode)
public java.lang.String getScriptCode()
public void setScriptCode(java.lang.String scriptCode)
public java.lang.String getRegionCode()
public void setRegionCode(java.lang.String regionCode)
public byte[] getReserved28_35()
public void setReserved28_35(byte[] reserved28_35)
public java.lang.String getVariantCode()
public void setVariantCode(java.lang.String variantCode)