Class

better.files

UnicodeDecoder

Related Doc: package files

Permalink

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)

    Permalink

    defaultCharset

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def averageCharsPerByte(): Float

    Permalink
    Definition Classes
    CharsetDecoder
  6. final def charset(): Charset

    Permalink
    Definition Classes
    CharsetDecoder
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  8. final def decode(arg0: ByteBuffer): CharBuffer

    Permalink
    Definition Classes
    CharsetDecoder
    Annotations
    @throws( ... )
  9. final def decode(arg0: ByteBuffer, arg1: CharBuffer, arg2: Boolean): CoderResult

    Permalink
    Definition Classes
    CharsetDecoder
  10. def decodeLoop(in: ByteBuffer, out: CharBuffer): CoderResult

    Permalink
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  11. def detectedCharset(): Charset

    Permalink
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def flush(arg0: CharBuffer): CoderResult

    Permalink
    Definition Classes
    CharsetDecoder
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  17. def implFlush(arg0: CharBuffer): CoderResult

    Permalink
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  18. def implOnMalformedInput(arg0: CodingErrorAction): Unit

    Permalink
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  19. def implOnUnmappableCharacter(arg0: CodingErrorAction): Unit

    Permalink
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  20. def implReplaceWith(arg0: String): Unit

    Permalink
    Attributes
    protected[java.nio.charset]
    Definition Classes
    CharsetDecoder
  21. def implReset(): Unit

    Permalink
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  22. def isAutoDetecting(): Boolean

    Permalink
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  23. def isCharsetDetected(): Boolean

    Permalink
    Definition Classes
    UnicodeDecoder → CharsetDecoder
  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def malformedInputAction(): CodingErrorAction

    Permalink
    Definition Classes
    CharsetDecoder
  26. final def maxCharsPerByte(): Float

    Permalink
    Definition Classes
    CharsetDecoder
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  30. final def onMalformedInput(arg0: CodingErrorAction): CharsetDecoder

    Permalink
    Definition Classes
    CharsetDecoder
  31. final def onUnmappableCharacter(arg0: CodingErrorAction): CharsetDecoder

    Permalink
    Definition Classes
    CharsetDecoder
  32. final def replaceWith(arg0: String): CharsetDecoder

    Permalink
    Definition Classes
    CharsetDecoder
  33. final def replacement(): String

    Permalink
    Definition Classes
    CharsetDecoder
  34. final def reset(): CharsetDecoder

    Permalink
    Definition Classes
    CharsetDecoder
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. def unmappableCharacterAction(): CodingErrorAction

    Permalink
    Definition Classes
    CharsetDecoder
  38. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from CharsetDecoder

Inherited from AnyRef

Inherited from Any

Ungrouped