Interface CharacterHandler

  • All Known Implementing Classes:
    NormalizationChecker

    public interface CharacterHandler
    An interface for receiving notifications of UTF-16 code units read from a character stream.
    Version:
    $Id$
    Author:
    hsivonen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void characters​(char[] ch, int start, int length)
      Receive notification of a run of UTF-16 code units.
      void end()
      Signals the end of the stream.
      void start()
      Signals the start of the stream.
    • Method Detail

      • characters

        void characters​(char[] ch,
                        int start,
                        int length)
                 throws org.xml.sax.SAXException
        Receive notification of a run of UTF-16 code units.
        Parameters:
        ch - the buffer
        start - start index in the buffer
        length - the number of characters to process starting from start
        Throws:
        org.xml.sax.SAXException - if things go wrong
      • end

        void end()
          throws org.xml.sax.SAXException
        Signals the end of the stream. Can be used for cleanup. Doesn't mean that the stream ended successfully.
        Throws:
        org.xml.sax.SAXException - if things go wrong
      • start

        void start()
            throws org.xml.sax.SAXException
        Signals the start of the stream. Can be used for setup.
        Throws:
        org.xml.sax.SAXException - if things go wrong