public void registerTextFlavorProperties(String nat,String charset,String eoln,String terminators){
  Long format=getFormatForNativeAsLong(nat);
  textNatives.add(format);
  nativeCharsets.put(format,(charset != null && charset.length() != 0) ? charset : getDefaultTextCharset());
  if (eoln != null && eoln.length() != 0 && !eoln.equals("\n")) {
    nativeEOLNs.put(format,eoln);
  }
  if (terminators != null && terminators.length() != 0) {
    Integer iTerminators=Integer.valueOf(terminators);
    if (iTerminators.intValue() > 0) {
      nativeTerminators.put(format,iTerminators);
    }
  }
}

public void registerTextFlavorProperties ( String nat , String charset , String eoln , String terminators ) { Long format = getFormatForNativeAsLong ( nat ) ; textNatives . add ( format ) ; nativeCharsets . put ( format , ( charset != null && charset . length ( ) != 0 ) ? charset : getDefaultTextCharset ( ) ) ; if ( eoln != null && eoln . length ( ) != 0 && ! eoln . equals ( "\n" ) ) { nativeEOLNs . put ( format , eoln ) ; } if ( terminators != null && terminators . length ( ) != 0 ) { Integer iTerminators = Integer . valueOf ( terminators ) ; if ( iTerminators . intValue ( ) > 0 ) { nativeTerminators . put ( format , iTerminators ) ; } } }
this method is called for text flavor mappings established while parsing the flavormap . properties file . it stores the " eoln " and " terminators " parameters which are not officially part of the mime type . they are mime parameters specific to the flavormap . properties file format .
