public class ImageContent extends AbstractStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and 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.
|
log, SF_CLASS, SF_HEADER
Constructor and Description |
---|
ImageContent()
Main Constructor
|
Modifier and Type | Method and Description |
---|---|
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 |
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.
|
writeToStream
copyChunks, copySF, copySF, truncate, writeChunksToStream, writeObjects
public static final byte COMPID_G3_MH
public static final byte COMPID_G3_MR
public static final byte COMPID_G3_MMR
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.public void setImageIDEColorModel(byte color)
setIDEStructureParameter(IDEStructureParameter)
insteadcolor
- the IDE color model.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 occurredCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.