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

    • languages

      private List<String> languages
    • token_source

      public ContentLanguageParserTokenManager token_source
      Generated Token Manager.
    • jj_input_stream

      SimpleCharStream jj_input_stream
    • token

      public Token token
      Current token.
    • jj_nt

      public Token jj_nt
      Next token.
    • jj_ntk

      private int jj_ntk
    • jj_gen

      private int jj_gen
    • jj_la1

      private final int[] jj_la1
    • jj_la1_0

      private static int[] jj_la1_0
    • jj_expentries

      private List<int[]> jj_expentries
    • jj_expentry

      private int[] jj_expentry
    • jj_kind

      private int jj_kind
    • trace_enabled

      private boolean trace_enabled
  • 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
    • doParse

      private final List<String> doParse() throws ParseException
      Throws:
      ParseException
    • language

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

      private static void jj_la1_init_0()
    • 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.
    • jj_consume_token

      private Token jj_consume_token(int kind) throws ParseException
      Throws:
      ParseException
    • getNextToken

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

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

      private int jj_ntk_f()
    • 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.