UnicodeDecoder
better.files.UnicodeDecoder
A Unicode decoder that uses the Unicode byte-order marker (BOM) to auto-detect the encoding (if none detected, falls back on the defaultCharset). This also gets around a bug in the JDK (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4508058) where BOM is not consumed for UTF-8. See: https://github.com/pathikrit/better-files/issues/107
Attributes
- defaultCharset
Use this charset if no known byte-order marker is detected
- Graph
- Supertypes
- class CharsetDecoderclass Objecttrait Matchableclass Any