Search in sources :

Example 1 with XMLBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox in project bioformats by openmicroscopy.

the class FileFormatReader method readXMLBox.

/**
 * This method reads the contents of the XML box
 */
public void readXMLBox(int length) throws IOException {
    if (metadata != null) {
        byte[] data = new byte[length];
        in.readFully(data, 0, length);
        metadata.addNode(new XMLBox(data));
    }
}
Also used : XMLBox(com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox)

Example 2 with XMLBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox in project bioformats by ome.

the class FileFormatReader method readXMLBox.

/**
 * This method reads the contents of the XML box
 */
public void readXMLBox(int length) throws IOException {
    if (metadata != null) {
        byte[] data = new byte[length];
        in.readFully(data, 0, length);
        metadata.addNode(new XMLBox(data));
    }
}
Also used : XMLBox(com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox)

Aggregations

XMLBox (com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox)2