Class PNMMetadata
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadata
-
- com.sun.media.imageioimpl.plugins.pnm.PNMMetadata
-
- All Implemented Interfaces:
Cloneable
public class PNMMetadata extends IIOMetadata implements Cloneable
Metadata for the PNM plug-in.
-
-
Field Summary
-
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
-
Constructor Summary
Constructors Constructor Description PNMMetadata(IIOMetadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComment(String comment)
protected Object
clone()
Node
getAsTree(String formatName)
Object
getAttribute(Node node, String name)
String
getFormatName()
protected IIOMetadataNode
getStandardChromaNode()
protected IIOMetadataNode
getStandardDataNode()
protected IIOMetadataNode
getStandardDimensionNode()
protected IIOMetadataNode
getStandardTextNode()
String
getVariant()
boolean
isReadOnly()
void
mergeTree(String formatName, Node root)
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
-
-
-
-
Constructor Detail
-
PNMMetadata
public PNMMetadata(IIOMetadata metadata) throws IIOInvalidTreeException
- Throws:
IIOInvalidTreeException
-
-
Method Detail
-
getAsTree
public Node getAsTree(String formatName)
- Specified by:
getAsTree
in classIIOMetadata
-
getStandardChromaNode
protected IIOMetadataNode getStandardChromaNode()
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardDataNode
protected IIOMetadataNode getStandardDataNode()
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
protected IIOMetadataNode getStandardDimensionNode()
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTextNode
protected IIOMetadataNode getStandardTextNode()
- Overrides:
getStandardTextNode
in classIIOMetadata
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in classIIOMetadata
-
mergeTree
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
- Specified by:
mergeTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
setFromTree
public void setFromTree(String formatName, Node root) throws IIOInvalidTreeException
- Overrides:
setFromTree
in classIIOMetadata
- Throws:
IIOInvalidTreeException
-
reset
public void reset()
- Specified by:
reset
in classIIOMetadata
-
getFormatName
public String getFormatName()
-
getVariant
public String getVariant()
-
setVariant
public void setVariant(int v)
Sets the variant: '1' - '6'.
-
setWidth
public void setWidth(int w)
-
setHeight
public void setHeight(int h)
-
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
public void addComment(String comment)
-
-