Class TwitterAPIParser

java.lang.Object
com.attribyte.parser.entry.TwitterAPIParser
All Implemented Interfaces:
Parser

public class TwitterAPIParser extends Object implements Parser
Parse a Twitter JSON document to create an entry.
  • Field Details

    • MAX_ID_META

      public static final String MAX_ID_META
      The source property in which the maximum seen id is saved.
      See Also:
  • Constructor Details

    • TwitterAPIParser

      public TwitterAPIParser()
  • Method Details

    • name

      public String name()
      Description copied from interface: Parser
      The name of the parser.
      Specified by:
      name in interface Parser
      Returns:
      The name.
    • parse

      public ParseResult parse(String content, String sourceLink, ContentCleaner contentCleaner)
      Description copied from interface: Parser
      Parse content.
      Specified by:
      parse in interface Parser
      Parameters:
      content - The content as a string.
      sourceLink - The link for the content, if available.
      contentCleaner - The content cleaner.
      Returns:
      The result.