Interface ProjectResources

All Known Implementing Classes:
DesktopProject, LocalProject, ShadowProject

public interface ProjectResources
Interface for project resources extension for Projects
  • Method Details

    • getResourceLocation

      String getResourceLocation()
      Get location of project resources folder.
      Returns:
      location of project resources folder
    • getResourceInputStream

      InputStream getResourceInputStream(String resourceName) throws IOException
      Get an input stream for the specified project resource. The resource name should be a relative path including filename. E.g., 'ca.phon.myplugin/module/corpus/session.dat'
      Parameters:
      resourceName -
      Returns:
      an input stream for the specified resource
      Throws:
      IOException
    • getResourceOutputStream

      OutputStream getResourceOutputStream(String resourceName) throws IOException
      Get an output stream for the specified resource. If the resource does not exist, it is created. If the resource already exists, it is overwritten.
      Parameters:
      resourceName -
      Returns:
      output stream for the specified resource
      Throws:
      IOException