Class Flowifier

java.lang.Object
htmlflow.flowifier.Flowifier

public class Flowifier extends Object
Main class of the flowifier used to convert a whole document or the content of a node into a Java class
Author:
Julien Gouesse
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Returns the Java source code of a class that generates the HTML source code of the given source.
    Returns the Java source code of a class that generates the HTML source code of the document at the given URL
    <T extends Appendable>
    T
    toFlow(String url, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor)
    Returns the Java source code of a class that generates the HTML source code of the document at the given URL
    toFlow(org.jsoup.nodes.Document doc)
    Returns the Java source code of a class that generates the HTML source code of the given document
    <T extends Appendable>
    T
    toFlow(org.jsoup.nodes.Document doc, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor)
    Returns the Java source code of a class that generates the HTML source code of the given document
    <T extends Appendable>
    T
    toFlow(org.jsoup.nodes.Node node, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor)
    Returns the Java source code of a class that generates the HTML source code of the given node

    Methods inherited from class java.lang.Object

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

    • Flowifier

      public Flowifier()
      Constructor
  • Method Details

    • toFlow

      public <T extends Appendable> T toFlow(org.jsoup.nodes.Node node, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor)
      Returns the Java source code of a class that generates the HTML source code of the given node
      Type Parameters:
      T - the type of appendable used to store the Java source code
      Parameters:
      node - the node whose content has to be converted
      htmlToJavaHtmlFlowNodeVisitor - the visitor that performs the conversion
      Returns:
      the Java source code of a class that generates the HTML source code of the given node
    • toFlow

      public <T extends Appendable> T toFlow(org.jsoup.nodes.Document doc, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor)
      Returns the Java source code of a class that generates the HTML source code of the given document
      Type Parameters:
      T - the type of appendable used to store the Java source code
      Parameters:
      doc - the document whose content has to be converted
      htmlToJavaHtmlFlowNodeVisitor - the visitor that performs the conversion
      Returns:
      the Java source code of a class that generates the HTML source code of the given document
    • toFlow

      public String toFlow(org.jsoup.nodes.Document doc)
      Returns the Java source code of a class that generates the HTML source code of the given document
      Parameters:
      doc - the document whose content has to be converted
      Returns:
      the Java source code of a class that generates the HTML source code of the given document
    • toFlow

      public <T extends Appendable> T toFlow(String url, HtmlToJavaHtmlFlowNodeVisitor<T> htmlToJavaHtmlFlowNodeVisitor) throws IOException
      Returns the Java source code of a class that generates the HTML source code of the document at the given URL
      Type Parameters:
      T - the type of appendable used to store the Java source code
      Parameters:
      url - the URL of the document
      htmlToJavaHtmlFlowNodeVisitor - the visitor that performs the conversion
      Returns:
      the Java source code of a class that generates the HTML source code of the document at the given URL
      Throws:
      IOException - thrown when something wrong occurs while getting the document at the given URL
    • toFlow

      public String toFlow(String url) throws IOException
      Returns the Java source code of a class that generates the HTML source code of the document at the given URL
      Parameters:
      url - the URL of the document
      Returns:
      the Java source code of a class that generates the HTML source code of the document at the given URL
      Throws:
      IOException - thrown when something wrong occurs while getting the document at the given URL
    • fromHtml

      public static String fromHtml(String src)
      Returns the Java source code of a class that generates the HTML source code of the given source.
      Parameters:
      src - the HTML whose content has to be converted
      Returns:
      the Java source code of a class that generates the HTML source code of the given source.