void write(ImageOutputStream ios) throws IOException {
  length=2 + data.length;
  writeTag(ios);
  ios.write(data);
}

void write ( ImageOutputStream ios ) throws IOException { length = 2 + data . length ; writeTag ( ios ) ; ios . write ( data ) ; }
writes the data for this segment to the stream in valid jpeg format , directly from the data array .
