|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crisp.wbwiki.server.WikiDbTextFile
public class WikiDbTextFile
Implementation of WikiDb that stores to a text file.
Constructor Summary | |
---|---|
WikiDbTextFile(File path)
|
Method Summary | |
---|---|
int |
getCurrentVersion()
|
File |
getPath()
Path to the file used to store wiki data. |
Page |
loadPage()
Never null. |
int |
savePage(String pageContent)
Saves the page and increments the version. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WikiDbTextFile(File path)
path
- Path to the file used to store wiki data (required).Method Detail |
---|
public File getPath()
public Page loadPage()
WikiDb
loadPage
in interface WikiDb
public int savePage(String pageContent)
savePage
in interface WikiDb
pageContent
-
public int getCurrentVersion()
getCurrentVersion
in interface WikiDb
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |