|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.core.io.project.extension.internal.ActionProjectFile
public class ActionProjectFile
Project file based on an I/O action
Constructor Summary | |
---|---|
ActionProjectFile(String loadActionId,
String loadProviderId,
Map<String,String> loadParameters,
String saveActionId,
String saveProviderId,
Map<String,String> saveParameters)
Create a project file based on an I/O action |
Method Summary | |
---|---|
void |
apply()
Apply the (loaded) configuration. |
protected IOAdvisor<?> |
getLoadAdvisor(String loadActionId)
Get the advisor for loading the file. |
void |
load(InputStream in)
Load the file from an input stream when loading a project. |
void |
reset()
Reset the file when a project is loaded but no data for the file was present or loading the file failed. |
void |
store(OutputStream out)
Store the file to an output stream when saving a project. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionProjectFile(String loadActionId, String loadProviderId, Map<String,String> loadParameters, String saveActionId, String saveProviderId, Map<String,String> saveParameters)
loadActionId
- the action identifier for loading the fileloadProviderId
- the provider identifier to use for loading the
file, may be null
to use auto-detectionloadParameters
- the parameters for the I/O provider used for
loading the filesaveActionId
- the action identifier for saving the filesaveProviderId
- the provider identifier to use for saving the filesaveParameters
- the parameters for the I/O provider used for saving
the fileMethod Detail |
---|
public void load(InputStream in) throws Exception
ProjectFile
load
in interface ProjectFile
in
- the input stream
Exception
- if an error occurs loading the fileProjectFile.load(InputStream)
public void apply()
ProjectFile
ProjectFile.load(InputStream)
or ProjectFile.apply()
haven't been called after
the main project file has been loaded.
apply
in interface ProjectFile
ProjectFile.apply()
protected IOAdvisor<?> getLoadAdvisor(String loadActionId)
IOAdvisorExtension
to look for a matching advisor.
loadActionId
- the action ID for loading the project file
public void reset()
ProjectFile
reset
in interface ProjectFile
ProjectFile.reset()
public void store(OutputStream out) throws Exception
ProjectFile
store
in interface ProjectFile
out
- the output stream
Exception
- if an error occurs saving the fileProjectFile.store(OutputStream)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |