public String getString ( String name ) { List part = _partMap . getValues ( name ) ; if ( part == null ) return null ; if ( _encoding != null ) { try { return new String ( ( ( Part ) part . get ( 0 ) ) . _data , _encoding ) ; } catch ( UnsupportedEncodingException uee ) { if ( log . isDebugEnabled ( ) ) log . debug ( "Invalid character set: " + uee ) ; return null ; } } else return new String ( ( ( Part ) part . get ( 0 ) ) . _data ) ; }
Get the data of a part as a string .