Class PNMMetadata
java.lang.Object
javax.imageio.metadata.IIOMetadata
com.github.jaiimageio.impl.plugins.pnm.PNMMetadata
- All Implemented Interfaces:
Cloneable
Metadata for the PNM plug-in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList
The comments.private int
The image height.private int
The max value for the encoded/decoded image.private int
Maximum number of bits per sample (not in metadata).(package private) static final String
private int
The image variants.private int
The image width.Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor containing code shared by other constructors.PNMMetadata
(ImageTypeSpecifier imageType, ImageWriteParam param) Constructs a default imagePNMMetadata
object appropriate for the given image type and write parameters.PNMMetadata
(IIOMetadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment) protected Object
clone()
getAttribute
(Node node, String name) (package private) Iterator
(package private) int
(package private) int
(package private) IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
protected IIOMetadataNode
(package private) void
initialize
(ImageTypeSpecifier imageType, ImageWriteParam param) (package private) boolean
isRaw()
boolean
private void
mergeNativeTree
(Node root) private void
mergeStandardTree
(Node root) void
void
reset()
void
setFromTree
(String formatName, Node root) void
setHeight
(int h) void
setMaxBitDepth
(int maxValue) Set the maximum sample size and maximum sample value.void
setVariant
(int v) Sets the variant: '1' - '6'.void
setWidth
(int w) Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardCompressionNode, getStandardDocumentNode, getStandardTileNode, getStandardTransparencyNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
Field Details
-
nativeMetadataFormatName
- See Also:
-
maxSample
private int maxSampleThe max value for the encoded/decoded image. -
width
private int widthThe image width. -
height
private int heightThe image height. -
variant
private int variantThe image variants. -
comments
The comments. -
maxSampleSize
private int maxSampleSizeMaximum number of bits per sample (not in metadata).
-
-
Constructor Details
-
PNMMetadata
PNMMetadata()Constructor containing code shared by other constructors. -
PNMMetadata
- Throws:
IIOInvalidTreeException
-
PNMMetadata
PNMMetadata(ImageTypeSpecifier imageType, ImageWriteParam param) Constructs a default imagePNMMetadata
object appropriate for the given image type and write parameters.
-
-
Method Details
-
initialize
-
clone
-
getAsTree
- Specified by:
getAsTree
in classIIOMetadata
-
getNativeTree
IIOMetadataNode getNativeTree() -
getStandardChromaNode
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardDataNode
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTextNode
- Overrides:
getStandardTextNode
in classIIOMetadata
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnly
in classIIOMetadata
-
mergeTree
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
setFromTree
- Overrides:
setFromTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
reset
public void reset()- Specified by:
reset
in classIIOMetadata
-
getFormatName
-
getVariant
-
isRaw
boolean isRaw() -
setVariant
public void setVariant(int v) Sets the variant: '1' - '6'. -
setWidth
public void setWidth(int w) -
setHeight
public void setHeight(int h) -
getMaxBitDepth
int getMaxBitDepth() -
getMaxValue
int getMaxValue() -
setMaxBitDepth
public void setMaxBitDepth(int maxValue) Set the maximum sample size and maximum sample value.- Parameters:
maxValue
- The maximum sample value. This method computes the maximum sample size.
-
addComment
-
getComments
Iterator getComments() -
mergeNativeTree
- Throws:
IIOInvalidTreeException
-
mergeStandardTree
- Throws:
IIOInvalidTreeException
-
getAttribute
-