|
||||||||||
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
de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerPlaintext
Archive handler for archives which treat their entries as plain text.
Field Summary | |
static java.lang.String |
CONTENT_SUFFIX
|
static java.lang.String |
CONTENT_TYPE
|
protected static java.lang.String |
ENTRY_MARKER
Start and end of an entry name, introducing a new entry. |
protected static char |
ENTRY_MARKER_CHAR
|
protected static int |
MARKER_SIZE
|
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 | |
ArchiveHandlerPlaintext()
|
Method Summary | |
protected void |
createEntry(java.lang.Object data,
ArchiveEntry entry)
Creates a new archive entry in the data source handled by this ArchiveIOHandler. |
protected static java.lang.String |
entry2text(ArchiveEntry entry)
|
java.lang.String |
getContentSuffix()
Content type for export via HTTP. |
java.lang.String |
getContentType()
Content type for export via HTTP. |
protected java.util.Map |
parseAll(java.lang.Object data)
Retrieves all archive entries from the data source. |
protected void |
replaceEntry(java.lang.Object data,
ArchiveEntry newEntry,
ArchiveEntry oldEntry)
Replaces an archive entry in the data source handled by this ArchiveIOHandler. |
Methods inherited from class de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerExternalFormatAbstract |
createData, dataToString, msgDone, msgNotDone, msgToDo, stringToData |
Methods inherited from class de.tuberlin.cs.flp.jspwiki.plugin.wikiarchive.ArchiveHandlerAbstract |
equalEntries, getEngine, init, performIO, setEngine |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CONTENT_TYPE
public static final java.lang.String CONTENT_SUFFIX
protected static final java.lang.String ENTRY_MARKER
protected static final char ENTRY_MARKER_CHAR
protected static final int MARKER_SIZE
Constructor Detail |
public ArchiveHandlerPlaintext()
Method Detail |
public java.lang.String getContentType()
getContentType
in interface ArchiveHandler
getContentType
in class ArchiveHandlerAbstract
public java.lang.String getContentSuffix()
getContentSuffix
in interface ArchiveHandler
getContentSuffix
in class ArchiveHandlerAbstract
protected void createEntry(java.lang.Object data, ArchiveEntry entry)
createEntry
in class ArchiveHandlerAbstract
data
- The data source handled by this ArchiveHandler, which is of type StringBuffer here.entry
- The entry.protected void replaceEntry(java.lang.Object data, ArchiveEntry newEntry, ArchiveEntry oldEntry)
replaceEntry
in class ArchiveHandlerAbstract
data
- The data source handled by this ArchiveHandler, which is of type StringBuffer here.newEntry
- The new entry.oldEntry
- The old entry.protected java.util.Map parseAll(java.lang.Object data) throws java.io.IOException
parseAll
in class ArchiveHandlerAbstract
data
- The data source handled by this ArchiveHandler, which is of type StringBuffer here.
java.io.IOException
- if an i/o error occursprotected static java.lang.String entry2text(ArchiveEntry entry)
entry
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |