Streamable
public class ImageContent extends AbstractStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field | Description |
---|---|---|
static byte |
COMPID_G3_MH |
The CCITT T.4 Group 3 Coding Standard (G3 MH-Modified Huffman) is a
compression method standardized by the International Telegraph and
Telephone Consultative Committee (CCITT) for facsimile.
|
static byte |
COMPID_G3_MMR |
The CCITT T.6 Group 4 Coding Standard (G4 MMR-Modified Modified READ) is a
compression method standardized by the International Telegraph and
Telephone Consultative Committee (CCITT) for facsimile.
|
static byte |
COMPID_G3_MR |
The CCITT T.4 Group 3 Coding Option (G3 MR-Modified READ) is a
compression method standardized by the International Telegraph and
Telephone Consultative Committee (CCITT) for facsimile.
|
static byte |
COMPID_JPEG |
JPEG algorithms (usually baseline DCT).
|
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor | Description |
---|---|
ImageContent() |
Main Constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addTile(Tile tile) |
|
IDEStructureParameter |
getIDEStructureParameter() |
Returns the (optional) IDE Structure parameter
|
IDEStructureParameter |
needIDEStructureParameter() |
Returns the (optional) IDE Structure parameter.
|
void |
setIDEStructureParameter(IDEStructureParameter parameter) |
Sets the IDE Structure parameter.
|
void |
setImageCompression(byte comp) |
Sets the image compression.
|
void |
setImageData(byte[] imageData) |
Set the image data (can be byte array or inputstream)
|
void |
setImageEncoding(byte enc) |
Sets the image encoding.
|
void |
setImageIDEColorModel(byte color) |
Deprecated.
use
setIDEStructureParameter(IDEStructureParameter) instead |
void |
setImageIDESize(byte s) |
Sets the image IDE size.
|
void |
setImageSizeParameter(ImageSizeParameter imageSizeParameter) |
Sets the image size parameter
|
void |
setSubtractive(boolean subtractive) |
Deprecated.
use
setIDEStructureParameter(IDEStructureParameter) instead |
void |
setTileTOC(TileTOC toc) |
|
protected void |
writeContent(java.io.OutputStream os) |
Helper method to write the contents of the Object.
|
protected void |
writeEnd(java.io.OutputStream os) |
Helper method to write the end of the Object.
|
protected void |
writeStart(java.io.OutputStream os) |
Helper method to write the start of the Object.
|
copySF, copySF, truncate, writeChunksToStream, writeObjects
writeToStream
public static final byte COMPID_G3_MH
public static final byte COMPID_G3_MR
public static final byte COMPID_G3_MMR
public static final byte COMPID_JPEG
public void setImageSizeParameter(ImageSizeParameter imageSizeParameter)
imageSizeParameter
- the image size parameter.public void setIDEStructureParameter(IDEStructureParameter parameter)
parameter
- the IDE Structure parameterpublic IDEStructureParameter getIDEStructureParameter()
public IDEStructureParameter needIDEStructureParameter()
public void setImageEncoding(byte enc)
enc
- The image encoding.public void setImageCompression(byte comp)
comp
- The image compression.public void setImageIDESize(byte s)
s
- The IDE size.@Deprecated public void setImageIDEColorModel(byte color)
setIDEStructureParameter(IDEStructureParameter)
insteadcolor
- the IDE color model.@Deprecated public void setSubtractive(boolean subtractive)
setIDEStructureParameter(IDEStructureParameter)
insteadsubtractive
- true for subtractive mode, false for additive modepublic void setImageData(byte[] imageData)
imageData
- the image dataprotected void writeContent(java.io.OutputStream os) throws java.io.IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os) throws java.io.IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- an I/O exception if one occurredpublic void setTileTOC(TileTOC toc)
public void addTile(Tile tile)
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.