Class ParserCSSCharsetDetector

java.lang.Object
com.helger.css.parser.ParserCSSCharsetDetector
All Implemented Interfaces:
ParserCSSCharsetDetectorConstants, ParserCSSCharsetDetectorTreeConstants

public class ParserCSSCharsetDetector extends Object implements ParserCSSCharsetDetectorTreeConstants, ParserCSSCharsetDetectorConstants
  • Field Details

  • Constructor Details

    • ParserCSSCharsetDetector

      public ParserCSSCharsetDetector(CharStream stream)
      Constructor with user supplied CharStream.
      Parameters:
      stream - stream to init with
    • ParserCSSCharsetDetector

      public ParserCSSCharsetDetector(ParserCSSCharsetDetectorTokenManager tm)
      Constructor with generated Token Manager.
      Parameters:
      tm - Token manager to use
  • Method Details

    • styleSheetCharset

      public final CSSNode styleSheetCharset() throws ParseException
      Throws:
      ParseException
    • ReInit

      public void ReInit(CharStream stream)
      Reinitialise.
      Parameters:
      stream - stream to init with
    • ReInit

      public void ReInit(ParserCSSCharsetDetectorTokenManager tm)
      Reinitialise
      Parameters:
      tm - Token manager to use
    • getNextToken

      public final Token getNextToken()
      Returns:
      the next Token.
    • getToken

      public final Token getToken(int index)
      Parameters:
      index - index to be retrieved
      Returns:
      the specific Token.
    • generateParseException

      public ParseException generateParseException()
      Generate ParseException.
      Returns:
      new Exception object. Never null
    • trace_enabled

      public final boolean trace_enabled()
      Returns:
      Always false.
    • enable_tracing

      public final void enable_tracing()
      Enable tracing.
    • disable_tracing

      public final void disable_tracing()
      Disable tracing.