Search in sources :

Example 21 with Box

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

the class FileFormatWriter method writeBox.

private void writeBox(IIOMetadataNode node) throws IOException {
    int type = Box.getTypeInt((String) Box.getAttribute(node, "Type"));
    int length = new Integer((String) Box.getAttribute(node, "Length")).intValue();
    Box box = Box.createBox(type, node);
    otherLength += length;
    stream.writeInt(length);
    stream.writeInt(type);
    byte[] data = box.getContent();
    stream.write(data, 0, data.length);
}
Also used : Box(com.sun.media.imageioimpl.plugins.jpeg2000.Box)

Aggregations

Box (com.sun.media.imageioimpl.plugins.jpeg2000.Box)6 ChannelDefinitionBox (com.sun.media.imageioimpl.plugins.jpeg2000.ChannelDefinitionBox)6 DataEntryURLBox (com.sun.media.imageioimpl.plugins.jpeg2000.DataEntryURLBox)6 HeaderBox (com.sun.media.imageioimpl.plugins.jpeg2000.HeaderBox)6 PaletteBox (com.sun.media.imageioimpl.plugins.jpeg2000.PaletteBox)6 UUIDBox (com.sun.media.imageioimpl.plugins.jpeg2000.UUIDBox)6 UUIDListBox (com.sun.media.imageioimpl.plugins.jpeg2000.UUIDListBox)6 XMLBox (com.sun.media.imageioimpl.plugins.jpeg2000.XMLBox)6 BitsPerComponentBox (com.sun.media.imageioimpl.plugins.jpeg2000.BitsPerComponentBox)4 ColorSpecificationBox (com.sun.media.imageioimpl.plugins.jpeg2000.ColorSpecificationBox)4 ComponentMappingBox (com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox)4 FileTypeBox (com.sun.media.imageioimpl.plugins.jpeg2000.FileTypeBox)4 ResolutionBox (com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox)4 SignatureBox (com.sun.media.imageioimpl.plugins.jpeg2000.SignatureBox)4 RecordCoreArgumentException (com.apple.foundationdb.record.RecordCoreArgumentException)1 Box (com.geophile.z.spatialobject.d2.Box)1