public class J2KMetadata extends IIOMetadata implements Cloneable
Modifier and Type | Field and Description |
---|---|
private ArrayList |
boxes
The boxes of JP2 file used as meta data, i.
|
private J2KMetadataFormat |
format
cache the metadata format
|
(package private) static String |
nativeMetadataFormatName |
controller, defaultController, extraMetadataFormatClassNames, extraMetadataFormatNames, nativeMetadataFormatClassName, standardFormatSupported
Constructor and 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 image
J2KMetadata object appropriate
for the given image type and write parameters. |
J2KMetadata(ImageInputStream iis,
J2KImageReader reader) |
J2KMetadata(ImageTypeSpecifier imageType,
ImageWriteParam param,
ImageWriter writer)
Constructs a default image
J2KMetadata object appropriate
for the given image type and write parameters. |
J2KMetadata(ImageWriteParam param,
ImageWriter writer)
Constructs a default stream
J2KMetadata object appropriate
for the given write parameters. |
activateController, getController, getDefaultController, getExtraMetadataFormatNames, getMetadataFormat, getMetadataFormatNames, getNativeMetadataFormatName, getStandardDocumentNode, getStandardTileNode, getStandardTree, hasController, isStandardMetadataFormatSupported, setController
static final String nativeMetadataFormatName
private J2KMetadataFormat format
private ArrayList boxes
public J2KMetadata()
public J2KMetadata(ImageInputStream iis, J2KImageReader reader) throws IOException
IOException
public J2KMetadata(ImageWriteParam param, ImageWriter writer)
J2KMetadata
object appropriate
for the given write parameters.public J2KMetadata(ImageTypeSpecifier imageType, ImageWriteParam param, ImageWriter writer)
J2KMetadata
object appropriate
for the given image type and write parameters.public J2KMetadata(ColorModel colorModel, SampleModel sampleModel, int width, int height, ImageWriteParam param, ImageWriter writer)
J2KMetadata
object appropriate
for the given image type and write parameters.public Node getAsTree(String formatName)
getAsTree
in class IIOMetadata
IIOMetadataNode getNativeTree()
protected IIOMetadataNode getStandardChromaNode()
getStandardChromaNode
in class IIOMetadata
protected IIOMetadataNode getStandardCompressionNode()
getStandardCompressionNode
in class IIOMetadata
protected IIOMetadataNode getStandardDataNode()
getStandardDataNode
in class IIOMetadata
protected IIOMetadataNode getStandardDimensionNode()
getStandardDimensionNode
in class IIOMetadata
protected IIOMetadataNode getStandardTransparencyNode()
getStandardTransparencyNode
in class IIOMetadata
protected IIOMetadataNode getStandardTextNode()
getStandardTextNode
in class IIOMetadata
public boolean isReadOnly()
isReadOnly
in class IIOMetadata
public void mergeTree(String formatName, Node root) throws IIOInvalidTreeException
mergeTree
in class IIOMetadata
IIOInvalidTreeException
public void setFromTree(String formatName, Node root) throws IIOInvalidTreeException
setFromTree
in class IIOMetadata
IIOInvalidTreeException
public void reset()
reset
in class IIOMetadata
public void addNode(Box node)
private void mergeNativeTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeException
private void mergeStandardTree(Node root) throws IIOInvalidTreeException
IIOInvalidTreeException
private void createColorSpecificationBoxFromStandardNode(Node node)
private void createPaletteBoxFromStandardNode(Node node)
private void createBitsPerComponentBoxFromStandardNode(Node node)
private void createResolutionBoxFromStandardNode(Node node)
private void createXMLBoxFromStandardNode(Node node)
private void createHeaderBoxFromStandardNode(Node node, int numComps)
private void createChannelDefinitionFromStandardNode(Node node)
private boolean insertNodeIntoTree(IIOMetadataNode root, IIOMetadataNode node)
private IIOMetadataNode getNodeFromTree(IIOMetadataNode root, String name, String childName)
private IIOMetadataNode createNodeIntoTree(IIOMetadataNode root, String name)
private boolean isOriginalSigned(SampleModel sampleModel)
private boolean checkUUIDInfoBox(Node node, String childName)
childName
exists.
This method is designed because UUID info box may have many instances.
So if one of its sub-box is inserted into the tree, an empty slut for
this sub-box has to be find or created to avoid one UUID info box
has duplicated sub-boxes. The users have to guarantee each UUID info
box has all the sub-boxes.Copyright © 2017 Open Microscopy Environment