opens a reader for the given resource using a charsetdecoder . unlike java 's defaults this reader will throw an exception if your it detects the read charset does n't match the expected charset . decoding readers are useful to load configuration files , stopword lists or synonym files to detect character set problems . however , its not recommended to use as a common purpose reader . concode_field_sep String UTF_8 concode_elem_sep Charset CHARSET_UTF_8 concode_field_sep void closeWhileHandlingException concode_elem_sep void closeWhileHandlingException concode_elem_sep void fsync concode_elem_sep void reThrow concode_elem_sep void reThrowUnchecked concode_elem_sep void addSuppressed concode_elem_sep void deleteFilesIgnoringExceptions concode_elem_sep void copy concode_elem_sep void close concode_elem_sep void close
Reader function ( Class < ? > arg0 , String arg1 , Charset arg2 ) { InputStream loc0 = null ; boolean loc1 = false ; try { loc0 = arg0 . getResourceAsStream ( arg1 ) ; final Reader loc2 = getDecodingReader ( loc0 , arg2 ) ; loc1 = true ; return loc2 ; } finally { if ( ! loc1 ) { IOUtils . close ( loc0 ) ; } } }