c

better.files

UnicodeDecoder

class UnicodeDecoder extends CharsetDecoder

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
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UnicodeDecoder
  2. CharsetDecoder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UnicodeDecoder(defaultCharset: Charset)

    defaultCharset

    Use this charset if no known byte-order marker is detected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. final def averageCharsPerByte(): Float
    Definition Classes
    CharsetDecoder
  6. final def charset(): Charset
    Definition Classes
    CharsetDecoder
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def decode(arg0: ByteBuffer): CharBuffer
    Definition Classes
    CharsetDecoder
    Annotations
    @throws( ... )
  9. final def decode(arg0: ByteBuffer, arg1: CharBuffer, arg2: Boolean): CoderResult
    Definition Classes
    CharsetDecoder
  10. def decodeLoop(in: ByteBuffer, out: CharBuffer): CoderResult
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  11. def detectedCharset(): Charset
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def flush(arg0: CharBuffer): CoderResult
    Definition Classes
    CharsetDecoder
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def implFlush(arg0: CharBuffer): CoderResult
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  19. def implOnMalformedInput(arg0: CodingErrorAction): Unit
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  20. def implOnUnmappableCharacter(arg0: CodingErrorAction): Unit
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  21. def implReplaceWith(arg0: String): Unit
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  22. def implReset(): Unit
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  23. def isAutoDetecting(): Boolean
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  24. def isCharsetDetected(): Boolean
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def malformedInputAction(): CodingErrorAction
    Definition Classes
    CharsetDecoder
  27. final def maxCharsPerByte(): Float
    Definition Classes
    CharsetDecoder
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def onMalformedInput(arg0: CodingErrorAction): CharsetDecoder
    Definition Classes
    CharsetDecoder
  32. final def onUnmappableCharacter(arg0: CodingErrorAction): CharsetDecoder
    Definition Classes
    CharsetDecoder
  33. final def replaceWith(arg0: String): CharsetDecoder
    Definition Classes
    CharsetDecoder
  34. final def replacement(): String
    Definition Classes
    CharsetDecoder
  35. final def reset(): CharsetDecoder
    Definition Classes
    CharsetDecoder
  36. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def unmappableCharacterAction(): CodingErrorAction
    Definition Classes
    CharsetDecoder
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from CharsetDecoder

Inherited from AnyRef

Inherited from Any

Ungrouped