|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerAbstract
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerExternalFormatAbstract
Common superclass for archive handlers that interface to an external data format.
Field Summary |
Fields inherited from class de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerAbstract |
config, engine |
Fields inherited from interface de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandler |
EXPORT, IMPORT |
Constructor Summary | |
ArchiveHandlerExternalFormatAbstract()
|
Method Summary | |
java.lang.Object |
createData()
Creates an empty data source to be filled for export. |
java.lang.String |
dataToString(java.lang.Object data)
Converts data source to string for export. |
protected java.lang.String |
msgDone(ArchiveEntry entry,
ArchiveEntry outEntry,
int mode)
Outputs a message informing about the action that has been taken for an entry. |
protected java.lang.String |
msgNotDone(ArchiveEntry entry,
ArchiveEntry outEntry,
int mode)
Outputs a message informing that an action has not been taken for an entry. |
protected java.lang.String |
msgToDo(ArchiveEntry inEntry,
ArchiveEntry outEntry,
int mode)
Outputs a message informing about the possible action to be taken for an input entry, e.g. |
void |
stringToData(java.lang.String s,
java.lang.Object data)
Converts a string to a handled data source for import. |
Methods inherited from class de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerAbstract |
createEntry, equalEntries, getContentSuffix, getContentType, getEngine, init, parseAll, performIO, replaceEntry, setEngine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArchiveHandlerExternalFormatAbstract()
Method Detail |
public java.lang.Object createData() throws java.io.IOException
createData
in interface ArchiveHandler
createData
in class ArchiveHandlerAbstract
java.io.IOException
public java.lang.String dataToString(java.lang.Object data) throws java.io.IOException
dataToString
in interface ArchiveHandler
dataToString
in class ArchiveHandlerAbstract
data
-
java.io.IOException
public void stringToData(java.lang.String s, java.lang.Object data) throws java.io.IOException
stringToData
in interface ArchiveHandler
stringToData
in class ArchiveHandlerAbstract
s
- data
-
java.io.IOException
protected java.lang.String msgDone(ArchiveEntry entry, ArchiveEntry outEntry, int mode)
msgDone
in class ArchiveHandlerAbstract
entry
- The entry processed.outEntry
- The currently existing possible output entry, or null if such does not exist yet.mode
- The action mode, like the mode
parameter of performIO().
protected java.lang.String msgNotDone(ArchiveEntry entry, ArchiveEntry outEntry, int mode)
msgNotDone
in class ArchiveHandlerAbstract
entry
- The entry not processed.outEntry
- The currently existing possible output entry, or null if such does not exist yet.mode
- The action mode, like the mode
parameter of performIO().
protected java.lang.String msgToDo(ArchiveEntry inEntry, ArchiveEntry outEntry, int mode)
msgToDo
in class ArchiveHandlerAbstract
inEntry
- The input entry.outEntry
- The currently existing possible output entry, or null if such does not exist yet.mode
- The action mode, like the mode
parameter of performIO().
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |