Class NormalizationChecker

  • All Implemented Interfaces:
    CharacterHandler

    public final class NormalizationChecker
    extends java.lang.Object
    implements CharacterHandler
    Version:
    $Id$
    Author:
    hsivonen
    • Constructor Summary

      Constructors 
      Constructor Description
      NormalizationChecker​(org.xml.sax.Locator locator)
      Constructor with mode selection.
    • Method Summary

      All Methods Instance Methods Concrete 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 err​(java.lang.String message)
      Emit an error.
      void setErrorHandler​(org.xml.sax.ErrorHandler errorHandler)  
      void start()
      Signals the start of the stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NormalizationChecker

        public NormalizationChecker​(org.xml.sax.Locator locator)
        Constructor with mode selection.
        Parameters:
        sourceTextMode - whether the source text-related messages should be enabled.
    • Method Detail

      • err

        public void err​(java.lang.String message)
                 throws org.xml.sax.SAXException
        Emit an error. The locator is used.
        Parameters:
        message - the error message
        Throws:
        org.xml.sax.SAXException - if something goes wrong
      • characters

        public void characters​(char[] ch,
                               int start,
                               int length)
                        throws org.xml.sax.SAXException
        Description copied from interface: CharacterHandler
        Receive notification of a run of UTF-16 code units.
        Specified by:
        characters in interface CharacterHandler
        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
        See Also:
        CharacterHandler.characters(char[], int, int)
      • end

        public void end()
                 throws org.xml.sax.SAXException
        Description copied from interface: CharacterHandler
        Signals the end of the stream. Can be used for cleanup. Doesn't mean that the stream ended successfully.
        Specified by:
        end in interface CharacterHandler
        Throws:
        org.xml.sax.SAXException - if things go wrong
        See Also:
        CharacterHandler.end()
      • setErrorHandler

        public void setErrorHandler​(org.xml.sax.ErrorHandler errorHandler)