public class MDD_MediumDescriptor extends StructuredFieldBaseTriplets
| Modifier and Type | Class and Description |
|---|---|
static class |
MDD_MediumDescriptor.MDD_Flag |
triplets| Constructor and Description |
|---|
MDD_MediumDescriptor() |
| 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. |
MDD_MediumDescriptor.MDD_Flag |
getFlag() |
int |
getxMediumExtent() |
AFPUnitBase |
getxUnitBase() |
short |
getxUnitsPerUnitBase() |
int |
getyMediumExtent() |
AFPUnitBase |
getyUnitBase() |
short |
getyUnitsPerUnitBase() |
void |
setFlag(MDD_MediumDescriptor.MDD_Flag flag) |
void |
setxMediumExtent(int xMediumExtent) |
void |
setxUnitBase(AFPUnitBase xUnitBase) |
void |
setxUnitsPerUnitBase(short xUnitsPerUnitBase) |
void |
setyMediumExtent(int yMediumExtent) |
void |
setyUnitBase(AFPUnitBase yUnitBase) |
void |
setyUnitsPerUnitBase(short yUnitsPerUnitBase) |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
addTriplet, getTriplets, removeTriplet, setTripletscheckDataLength, getActualLength, getPadding, getStructuredFieldIntroducer, isBeginSF, isEndSF, isShallow, setPadding, setStructuredFieldIntroducer, toString, writeFullStructuredFieldpublic void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteabledecodeAFP in class StructuredFieldBaseTripletssfData - 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 StructuredFieldBaseTripletsos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.public AFPUnitBase getxUnitBase()
public void setxUnitBase(AFPUnitBase xUnitBase)
public AFPUnitBase getyUnitBase()
public void setyUnitBase(AFPUnitBase yUnitBase)
public short getxUnitsPerUnitBase()
public void setxUnitsPerUnitBase(short xUnitsPerUnitBase)
public short getyUnitsPerUnitBase()
public void setyUnitsPerUnitBase(short yUnitsPerUnitBase)
public int getxMediumExtent()
public void setxMediumExtent(int xMediumExtent)
public int getyMediumExtent()
public void setyMediumExtent(int yMediumExtent)
public MDD_MediumDescriptor.MDD_Flag getFlag()
public void setFlag(MDD_MediumDescriptor.MDD_Flag flag)