Packages

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.

  • a decoder instance cannot be used concurrently, it can only decode a single sequence of bytes at a time
  • after a decode operation is completed, the reset method must be used to reset the decoder before using it again on a new sequence of bytes
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. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def autoDetect(implicit trace: Trace): UIO[AutoDetect]
  6. def averageCharsPerByte: Float
  7. def charset: Charset
  8. def decode(in: ByteBuffer, out: CharBuffer, endOfInput: Boolean)(implicit trace: Trace): UIO[CoderResult]
  9. def decode(in: ByteBuffer)(implicit trace: Trace): IO[CharacterCodingException, CharBuffer]
  10. def flush(out: CharBuffer)(implicit trace: Trace): UIO[CoderResult]
  11. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. val javaDecoder: java.nio.charset.CharsetDecoder
  14. def malformedInputAction(implicit trace: Trace): UIO[CodingErrorAction]
  15. def maxCharsPerByte: Float
  16. def onMalformedInput(errorAction: CodingErrorAction)(implicit trace: Trace): UIO[Unit]
  17. def onUnmappableCharacter(errorAction: CodingErrorAction)(implicit trace: Trace): UIO[Unit]
  18. def replaceWith(replacement: String)(implicit trace: Trace): UIO[Unit]
  19. def replacement(implicit trace: Trace): UIO[String]
  20. def reset(implicit trace: Trace): UIO[Unit]

    Resets this decoder, clearing any internal state.

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

    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]

Inherited from AnyVal

Inherited from Any

Ungrouped