Class/Object

zio.nio.charset

CharsetDecoder

Related Docs: object CharsetDecoder | package charset

Permalink

final class CharsetDecoder extends AnyVal

An engine that can transform a sequence of bytes in a specific charset into a sequence of sixteen-bit Unicode characters.

Important: a decoder instance is stateful, as it internally tracks the state of the current decoding operation.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharsetDecoder
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def autoDetect(implicit trace: Trace): UIO[AutoDetect]

    Permalink
  6. def averageCharsPerByte: Float

    Permalink
  7. def charset: Charset

    Permalink
  8. def decode(in: ByteBuffer, out: CharBuffer, endOfInput: Boolean)(implicit trace: Trace): UIO[CoderResult]

    Permalink
  9. def decode(in: ByteBuffer)(implicit trace: Trace): IO[CharacterCodingException, CharBuffer]

    Permalink
  10. def flush(out: CharBuffer)(implicit trace: Trace): UIO[CoderResult]

    Permalink
  11. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val javaDecoder: java.nio.charset.CharsetDecoder

    Permalink
  14. def malformedInputAction(implicit trace: Trace): UIO[CodingErrorAction]

    Permalink
  15. def maxCharsPerByte: Float

    Permalink
  16. def onMalformedInput(errorAction: CodingErrorAction)(implicit trace: Trace): UIO[Unit]

    Permalink
  17. def onUnmappableCharacter(errorAction: CodingErrorAction)(implicit trace: Trace): UIO[Unit]

    Permalink
  18. def replaceWith(replacement: String)(implicit trace: Trace): UIO[Unit]

    Permalink
  19. def replacement(implicit trace: Trace): UIO[String]

    Permalink
  20. def reset(implicit trace: Trace): UIO[Unit]

    Permalink

    Resets this decoder, clearing any internal state.

  21. def toString(): String

    Permalink
    Definition Classes
    Any
  22. def transducer(bufSize: Int = 5000)(implicit trace: Trace): ZPipeline[Any, CharacterCodingException, Byte, Char]

    Permalink

    Decodes a stream of bytes into characters according to this character set's encoding.

    Decodes a stream of bytes into characters according to this character set's encoding.

    Note the returned transducer is tied to this decoder and cannot be used concurrently.

    bufSize

    The size of the internal buffer used for encoding. Must be at least 50.

  23. def unmappableCharacterAction(implicit trace: Trace): UIO[CodingErrorAction]

    Permalink

Inherited from AnyVal

Inherited from Any

Ungrouped