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
Linear Supertypes
CharsetDecoder, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
UnicodeDecoder
CharsetDecoder
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newUnicodeDecoder(defaultCharset: Charset)
defaultCharset
Use this charset if no known byte-order marker is detected
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