public IIOMetadata convertStreamMetadata(IIOMetadata inData,ImageWriteParam param){
  if (inData == null) {
    throw new IllegalArgumentException("inData == null!");
  }
  IIOMetadata sm=getDefaultStreamMetadata(param);
  convertMetadata(STREAM_METADATA_NAME,inData,sm);
  return sm;
}

public IIOMetadata convertStreamMetadata ( IIOMetadata inData , ImageWriteParam param ) { if ( inData == null ) { throw new IllegalArgumentException ( "inData == null!" ) ; } IIOMetadata sm = getDefaultStreamMetadata ( param ) ; convertMetadata ( STREAM_METADATA_NAME , inData , sm ) ; return sm ; }
creates a default stream metadata object and merges in the supplied metadata .
