private static String getEncodingToUse ( String encoding ) { //get encoding String updatedEncoding = encoding ; if ( updatedEncoding == null ) { updatedEncoding = IOHelper . getDefaultEncoding ( ) ; } return updatedEncoding ; }
This function returns the encoding to use . If provided encoding is null the default system encoding is returend .