Class ContentLanguageParser

java.lang.Object
org.apache.james.mime4j.field.language.parser.ContentLanguageParser
All Implemented Interfaces:
ContentLanguageParserConstants

public class ContentLanguageParser extends Object implements ContentLanguageParserConstants
  • Field Details

  • Constructor Details

    • ContentLanguageParser

      public ContentLanguageParser(InputStream stream)
      Constructor with InputStream.
    • ContentLanguageParser

      public ContentLanguageParser(InputStream stream, String encoding)
      Constructor with InputStream and supplied encoding
    • ContentLanguageParser

      public ContentLanguageParser(Reader stream)
      Constructor.
    • ContentLanguageParser

      public ContentLanguageParser(ContentLanguageParserTokenManager tm)
      Constructor with generated Token Manager.
  • Method Details

    • parse

      public List<String> parse() throws ParseException
      Parses the input into a list of language tags.
      Returns:
      list of language tag Strings
      Throws:
      ParseException
    • language

      public final String language() throws ParseException
      Throws:
      ParseException
    • ReInit

      public void ReInit(InputStream stream)
      Reinitialise.
    • ReInit

      public void ReInit(InputStream stream, String encoding)
      Reinitialise.
    • ReInit

      public void ReInit(Reader stream)
      Reinitialise.
    • ReInit

      public void ReInit(ContentLanguageParserTokenManager tm)
      Reinitialise.
    • getNextToken

      public final Token getNextToken()
      Get the next Token.
    • getToken

      public final Token getToken(int index)
      Get the specific Token.
    • generateParseException

      public ParseException generateParseException()
      Generate ParseException.
    • trace_enabled

      public final boolean trace_enabled()
      Trace enabled.
    • enable_tracing

      public final void enable_tracing()
      Enable tracing.
    • disable_tracing

      public final void disable_tracing()
      Disable tracing.