Beispiel #1
0
 void write(ImageOutputStream ios, JPEGImageWriter writer) throws IOException {
   length = LENGTH_SIZE + DATA_SIZE + thumb.getLength();
   writeTag(ios);
   byte[] id = {0x4A, 0x46, 0x58, 0x58, 0x00};
   ios.write(id);
   ios.write(code);
   thumb.write(ios, writer);
 }
Beispiel #2
0
 protected Object clone() {
   JFIFExtensionMarkerSegment newGuy = (JFIFExtensionMarkerSegment) super.clone();
   if (thumb != null) {
     newGuy.thumb = (JFIFThumb) thumb.clone();
   }
   return newGuy;
 }
Beispiel #3
0
 void print() {
   printTag("JFXX");
   thumb.print();
 }
Beispiel #4
0
 IIOMetadataNode getNativeNode() {
   IIOMetadataNode node = new IIOMetadataNode("app0JFXX");
   node.setAttribute("extensionCode", Integer.toString(code));
   node.appendChild(thumb.getNativeNode());
   return node;
 }