COMMarkerSegment(String comment){
  super(JPEG.COM);
  data=comment.getBytes();
}

COMMarkerSegment ( String comment ) { super ( JPEG . COM ) ; data = comment . getBytes ( ) ; }
constructs a marker segment from a string . this is used when modifying metadata from a non - native tree and when transcoding . the default encoding is used to construct the byte array .
