Package org.apache.fop.afp.ioca
Class Tile
java.lang.Object
org.apache.fop.afp.modca.AbstractAFPObject
org.apache.fop.afp.modca.AbstractStructuredObject
org.apache.fop.afp.ioca.Tile
- All Implemented Interfaces:
Streamable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BandImageprivate byte[]private byteprivate byteprivate IDEStructureParameterprivate static final intprivate TilePositionprivate TileSizeprivate TransparencyMaskFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]private byte[]voidsetBandImage(BandImage bandImage) voidsetIDEStructureParameter(IDEStructureParameter ideStructureParameter) voidsetImageData(byte[] imageData) voidsetImageEncodingParameter(byte encoding) voidsetImageIDESizeParameter(byte ideSize) voidsetPosition(TilePosition tilePosition) voidvoidsetTransparencyMask(TransparencyMask transparencyMask) protected static voidwriteChunksToStream(byte[] data, byte[] dataHeader, int lengthOffset, int maxChunkLength, OutputStream os) voidHelper method to write the contents of the Object.private voidprotected voidwriteEnd(OutputStream os) Helper method to write the end of the Object.protected voidHelper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeToStreamMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, copySF, truncate, writeObjects
-
Field Details
-
MAX_DATA_LEN
private static final int MAX_DATA_LEN- See Also:
-
tilePosition
-
tileSize
-
bandImage
-
transparencyMask
-
data
private byte[] data -
ideStructureParameter
-
encoding
private byte encoding -
ideSize
private byte ideSize
-
-
Constructor Details
-
Tile
public Tile()
-
-
Method Details
-
writeContent
Description copied from class:AbstractStructuredObjectHelper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeData
- Throws:
IOException
-
writeStart
Description copied from class:AbstractStructuredObjectHelper method to write the start of the Object.- Overrides:
writeStartin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeEnd
Description copied from class:AbstractStructuredObjectHelper method to write the end of the Object.- Overrides:
writeEndin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- an I/O exception if one occurred
-
setPosition
-
setSize
-
setImageData
public void setImageData(byte[] imageData) -
writeChunksToStream
protected static void writeChunksToStream(byte[] data, byte[] dataHeader, int lengthOffset, int maxChunkLength, OutputStream os) throws IOException - Throws:
IOException
-
setImageEncodingParameter
public void setImageEncodingParameter(byte encoding) -
setImageIDESizeParameter
public void setImageIDESizeParameter(byte ideSize) -
setIDEStructureParameter
-
getImageEncodingParameter
private byte[] getImageEncodingParameter() -
getImageIDESizeParameter
private byte[] getImageIDESizeParameter() -
setBandImage
-
setTransparencyMask
-