Interface ProjectResources
- All Known Implementing Classes:
DesktopProject,LocalProject,ShadowProject
public interface ProjectResources
Interface for project resources extension for
Projects-
Method Summary
Modifier and TypeMethodDescriptiongetResourceInputStream(String resourceName) Get an input stream for the specified project resource.Get location of project resources folder.getResourceOutputStream(String resourceName) Get an output stream for the specified resource.
-
Method Details
-
getResourceLocation
String getResourceLocation()Get location of project resources folder.- Returns:
- location of project resources folder
-
getResourceInputStream
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
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
-