Interface OpenFileHandler

All Known Implementing Classes:
CHATOpenFileHandler, TextFileOpenHandler, XMLFileOpenHandler

public interface OpenFileHandler
Service interface for open file handlers.
  • Method Details

    • supportedExtensions

      Set<String> supportedExtensions()
      Returns:
      Set of supported file extensions (without '.')
    • canOpen

      boolean canOpen(File file) throws IOException
      Can this handler open this file?
      Parameters:
      file -
      Throws:
      IOException
    • openFile

      void openFile(File file, Map<String,Object> args) throws IOException
      Open the file in the appropriate editor/viewer.
      Parameters:
      file -
      args - - arguments pass to the open file handler
      Throws:
      IOException