Class HtmlParser

  • All Implemented Interfaces:
    Generator, java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    @Deprecated
    public class HtmlParser
    extends java.io.Writer
    implements Generator
    Deprecated.
    HTML parser. Invokes a DocumentHandler whenever an event occurs.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String INCLUDE_TAGS_PROPERTY
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlParser()
      Deprecated.
      Default constructor.
      HtmlParser​(java.lang.String[] includedTags)
      Deprecated.
       
      HtmlParser​(java.lang.String[] includedTags, boolean preserveCamelCase)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void close()
      Deprecated.
       
      void finished()
      Deprecated.
      Finish the parsing process.
      void flush()
      Deprecated.
       
      java.util.Set<java.lang.String> getTagInclusionSet()
      Deprecated.
       
      java.io.PrintWriter getWriter()
      Deprecated.
      Get the writer to write the output to.
      void init​(ProcessingContext pipelineContext, ProcessingComponentConfiguration config)
      Deprecated.
      Initialize this component.
      boolean isEmpty()
      Deprecated.
      Return a flag indicating whether the parser has still some undigested characters left.
      void setContentHandler​(org.xml.sax.ContentHandler handler)
      Deprecated.
      Set the content handler the generator should stream to.
      void setDocumentHandler​(DocumentHandler documentHandler)
      Deprecated.
      Set document handler.
      void setTagInclusionSet​(java.util.Set<java.lang.String> tagInclusionSet)
      Deprecated.
       
      void update​(char[] buf, int off, int len)
      Deprecated.
      Feed characters to the parser.
      void write​(char[] cbuf, int off, int len)
      Deprecated.
       
      void write​(int b)
      Deprecated.
       
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INCLUDE_TAGS_PROPERTY

        public static final java.lang.String INCLUDE_TAGS_PROPERTY
        Deprecated.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HtmlParser

        public HtmlParser()
        Deprecated.
        Default constructor.
      • HtmlParser

        public HtmlParser​(java.lang.String[] includedTags)
        Deprecated.
      • HtmlParser

        public HtmlParser​(java.lang.String[] includedTags,
                          boolean preserveCamelCase)
        Deprecated.
    • Method Detail

      • getWriter

        public java.io.PrintWriter getWriter()
        Deprecated.
        Description copied from interface: Generator
        Get the writer to write the output to.
        Specified by:
        getWriter in interface Generator
        Returns:
        A print writer.
        See Also:
        Generator.getWriter()
      • getTagInclusionSet

        public java.util.Set<java.lang.String> getTagInclusionSet()
        Deprecated.
      • setTagInclusionSet

        public void setTagInclusionSet​(java.util.Set<java.lang.String> tagInclusionSet)
        Deprecated.
      • setDocumentHandler

        public void setDocumentHandler​(DocumentHandler documentHandler)
        Deprecated.
        Set document handler. Allows a component to get notified about the events, before characters are decomposed into attributes.
        Parameters:
        documentHandler - document handler
      • write

        public void write​(char[] cbuf,
                          int off,
                          int len)
                   throws java.io.IOException
        Deprecated.
        Specified by:
        write in class java.io.Writer
        Throws:
        java.io.IOException
      • write

        public void write​(int b)
                   throws java.io.IOException
        Deprecated.
        Overrides:
        write in class java.io.Writer
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in class java.io.Writer
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Deprecated.
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in class java.io.Writer
        Throws:
        java.io.IOException
      • update

        public void update​(char[] buf,
                           int off,
                           int len)
                    throws java.io.IOException
        Deprecated.
        Feed characters to the parser.
        Parameters:
        buf - character buffer
        off - offset where characters start
        len - length of affected buffer
        Throws:
        java.io.IOException - IOException
      • isEmpty

        public boolean isEmpty()
        Deprecated.
        Return a flag indicating whether the parser has still some undigested characters left.
        Returns:
        true if the parser still contains characters false otherwise
      • finished

        public void finished()
                      throws java.io.IOException
        Deprecated.
        Finish the parsing process. This forces the parser to flush the characters still held in its internal buffer, regardless of the parsing state.
        Specified by:
        finished in interface Generator
        Throws:
        java.io.IOException - IOException