Class TikaGUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, HyperlinkListener, RootPaneContainer, WindowConstants

public class TikaGUI extends JFrame implements ActionListener, HyperlinkListener
Simple Swing GUI for Apache Tika. You can drag and drop files on top of the window to have them parsed.
See Also:
  • Constructor Details

    • TikaGUI

      public TikaGUI(org.apache.tika.parser.Parser parser)
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Main method. Sets the Swing look and feel to the operating system settings, and starts the Tika GUI with an AutoDetectParser instance as the default parser.
      Parameters:
      args - ignored
      Throws:
      Exception - if an error occurs
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • openFile

      public void openFile(File file)
    • openURL

      public void openURL(URL url)
    • hyperlinkUpdate

      public void hyperlinkUpdate(HyperlinkEvent e)
      Specified by:
      hyperlinkUpdate in interface HyperlinkListener