Class FormCharSetFinder


public class FormCharSetFinder extends Object
A parser for html, to find the form tags, and their accept-charset value
  • Constructor Details

    • FormCharSetFinder

      public FormCharSetFinder()
  • Method Details

    • addFormActionsAndCharSet

      public void addFormActionsAndCharSet(String html, Map<String,String> formEncodings, String pageEncoding) throws HTMLParseException
      Add form action urls and their corresponding encodings for all forms on the page
      html - the html to parse for form encodings
      formEncodings - the Map where form encodings should be added
      pageEncoding - the encoding used for the whole page
      HTMLParseException - when parsing the html fails