|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileInterface
Public interface to interacting with a file from the engine.
10NOV09 - EPG - First package release.
| Method Summary | |
|---|---|
long |
lastModified()
Get the last modified date for the source file. |
long |
lastModifiedDestination()
Get the last modified date for the destination file. |
java.io.InputStream |
openForRead()
Open for the file for reading. |
java.io.OutputStream |
openForWrite()
Open for the file in the destination for writing. |
java.io.OutputStream |
openNeighborForWrite(java.lang.String neighbor,
boolean isCataloged)
Open a neighbor file in the destination for writing. |
void |
setCatalogNeighbor(java.lang.String neighbor)
Set a neighbor as the catalog file instead of this. |
| Method Detail |
|---|
java.io.InputStream openForRead()
throws things.common.ThingsException
things.common.ThingsException
java.io.OutputStream openForWrite()
throws things.common.ThingsException
things.common.ThingsException
java.io.OutputStream openNeighborForWrite(java.lang.String neighbor,
boolean isCataloged)
throws things.common.ThingsException
neighbor - the neighbor file nameisCataloged - will this file be cataloged?
things.common.ThingsException
void setCatalogNeighbor(java.lang.String neighbor)
throws things.common.ThingsException
neighbor - the neighbor file name. This name must be unique for the neighborhood (containing directory) and can be used for other methods. It is case sensitive.
things.common.ThingsException - this will always happen if the neighbor has not been created through a openNeighborForWrite() call.
long lastModified()
throws things.common.ThingsException
things.common.ThingsException
long lastModifiedDestination()
throws things.common.ThingsException
things.common.ThingsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||