void write(ImageOutputStream ios,JPEGImageWriter writer) throws IOException {
  write(ios,null,writer);
}

void write ( ImageOutputStream ios , JPEGImageWriter writer ) throws IOException { write ( ios , null , writer ) ; }
writes the data for this segment to the stream in valid jpeg format . assumes that there will be no thumbnail .
