Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.core.io.project.model
Interface ProjectFile

All Known Implementing Classes:
ActionProjectFile

public interface ProjectFile

File associated/stored with a project. Implementations must have a default constructor if they shall be used in a project.

Author:
Simon Templer

Method Summary
 void apply()
          Apply the (loaded) configuration.
 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.
 

Method Detail

load

void load(InputStream in)
          throws Exception
Load the file from an input stream when loading a project.

Parameters:
in - the input stream
Throws:
Exception - if an error occurs loading the file
See Also:
apply()

reset

void reset()
Reset the file when a project is loaded but no data for the file was present or loading the file failed.

See Also:
apply()

apply

void apply()
Apply the (loaded) configuration. Is called even if load(InputStream) or apply() haven't been called after the main project file has been loaded.


store

void store(OutputStream out)
           throws Exception
Store the file to an output stream when saving a project.

Parameters:
out - the output stream
Throws:
Exception - if an error occurs saving the file

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d