Interface CharDecoder

All Known Implementing Classes:
AbstractCharDecoder, ASCIIDecoder, GenericDecoder, ISO_8859_1Decoder, StringDecoder, UTF16Decoder, UTF8Decoder

public interface CharDecoder
This interface represents an object which decodes characters from a stream of bytes.
Version:
$Id: CharDecoder.java 1733416 2016-03-03 07:07:13Z gadams $
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    This constant represents the end of stream character.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disposes the associated resources.
    int
    Reads the next character.
  • Field Details

    • END_OF_STREAM

      static final int END_OF_STREAM
      This constant represents the end of stream character.
      See Also:
  • Method Details

    • readChar

      int readChar() throws IOException
      Reads the next character.
      Returns:
      a character or END_OF_STREAM.
      Throws:
      IOException
    • dispose

      void dispose() throws IOException
      Disposes the associated resources.
      Throws:
      IOException