private void writeJFXXSegment(int index,BufferedImage thumbnail,ImageOutputStream ios,JPEGImageWriter writer) throws IOException {
  JFIFExtensionMarkerSegment jfxx=null;
  try {
    jfxx=new JFIFExtensionMarkerSegment(thumbnail);
  }
 catch (  IllegalThumbException e) {
    writer.warningOccurred(JPEGImageWriter.WARNING_ILLEGAL_THUMBNAIL);
    return;
  }
  writer.thumbnailStarted(index);
  jfxx.write(ios,writer);
  writer.thumbnailComplete();
}

private void writeJFXXSegment ( int index , BufferedImage thumbnail , ImageOutputStream ios , JPEGImageWriter writer ) throws IOException { JFIFExtensionMarkerSegment jfxx = null ; try { jfxx = new JFIFExtensionMarkerSegment ( thumbnail ) ; } catch ( IllegalThumbException e ) { writer . warningOccurred ( JPEGImageWriter . WARNING_ILLEGAL_THUMBNAIL ) ; return ; } writer . thumbnailStarted ( index ) ; jfxx . write ( ios , writer ) ; writer . thumbnailComplete ( ) ; }
writes out a new jfxx extension segment , without saving it .
