Class J2KMetadata
- java.lang.Object
-
- javax.imageio.metadata.IIOMetadata
-
- com.sun.media.imageioimpl.plugins.jpeg2000.J2KMetadata
-
- All Implemented Interfaces:
Cloneable
public class J2KMetadata extends IIOMetadata implements Cloneable
Metadata for the J2K plug-in.
-
-
Field Summary
-
Fields inherited from class javax.imageio.metadata.IIOMetadata
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
-
-
Constructor Summary
Constructors Constructor Description J2KMetadata()
Constructor containing code shared by other constructors.J2KMetadata(ColorModel colorModel, SampleModel sampleModel, int width, int height, ImageWriteParam param, ImageWriter writer)
Constructs a default imageJ2KMetadata
object appropriate for the given image type and write parameters.J2KMetadata(ImageTypeSpecifier imageType, ImageWriteParam param, ImageWriter writer)
Constructs a default imageJ2KMetadata
object appropriate for the given image type and write parameters.J2KMetadata(ImageWriteParam param, ImageWriter writer)
Constructs a default streamJ2KMetadata
object appropriate for the given write parameters.J2KMetadata(ImageInputStream iis, J2KImageReader reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNode(Box node)
Object
clone()
Node
getAsTree(String formatName)
Box
getElement(String name)
protected IIOMetadataNode
getStandardChromaNode()
protected IIOMetadataNode
getStandardCompressionNode()
protected IIOMetadataNode
getStandardDataNode()
protected IIOMetadataNode
getStandardDimensionNode()
protected IIOMetadataNode
getStandardTextNode()
protected IIOMetadataNode
getStandardTransparencyNode()
boolean
isReadOnly()
void
mergeTree(String formatName, Node root)
void
reset()
void
setFromTree(String formatName, Node root)
-
Methods inherited from class javax.imageio.metadata.IIOMetadata
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardDocumentNode, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
-
-
-
-
Constructor Detail
-
J2KMetadata
public J2KMetadata()
Constructor containing code shared by other constructors.
-
J2KMetadata
public J2KMetadata(ImageInputStream iis, J2KImageReader reader) throws IOException
- Throws:
IOException
-
J2KMetadata
public J2KMetadata(ImageWriteParam param, ImageWriter writer)
Constructs a default streamJ2KMetadata
object appropriate for the given write parameters.
-
J2KMetadata
public J2KMetadata(ImageTypeSpecifier imageType, ImageWriteParam param, ImageWriter writer)
Constructs a default imageJ2KMetadata
object appropriate for the given image type and write parameters.
-
J2KMetadata
public J2KMetadata(ColorModel colorModel, SampleModel sampleModel, int width, int height, ImageWriteParam param, ImageWriter writer)
Constructs a default imageJ2KMetadata
object appropriate for the given image type and write parameters.
-
-
Method Detail
-
getAsTree
public Node getAsTree(String formatName)
- Specified by:
getAsTree
in classIIOMetadata
-
getStandardChromaNode
protected IIOMetadataNode getStandardChromaNode()
- Overrides:
getStandardChromaNode
in classIIOMetadata
-
getStandardCompressionNode
protected IIOMetadataNode getStandardCompressionNode()
- Overrides:
getStandardCompressionNode
in classIIOMetadata
-
getStandardDataNode
protected IIOMetadataNode getStandardDataNode()
- Overrides:
getStandardDataNode
in classIIOMetadata
-
getStandardDimensionNode
protected IIOMetadataNode getStandardDimensionNode()
- Overrides:
getStandardDimensionNode
in classIIOMetadata
-
getStandardTransparencyNode
protected IIOMetadataNode getStandardTransparencyNode()
- Overrides:
getStandardTransparencyNode
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
-
addNode
public void addNode(Box node)
-
-