public class Page extends Object
| Constructor and Description |
|---|
Page() |
Page(String group,
String id,
String content,
long lastUpdated) |
Page(String group,
String id,
String content,
String title,
long created,
String author) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
Date |
getCreated() |
String |
getCurrentAuthor() |
String |
getGroup() |
String |
getId() |
String |
getTitle() |
Date |
getUpdated() |
static String |
idFor(String title) |
static String |
readTitle(BufferedReader reader) |
CharSequence |
render() |
void |
repair() |
static String |
serverPathFor(String group,
String title) |
Page |
setContent(String content) |
Page |
setCreated(Date created) |
Page |
setCurrentAuthor(String currentAuthor) |
Page |
setGroup(String group) |
void |
setId(String id) |
Page |
setTitle(String title) |
Page |
setUpdated(Date updated) |
void |
syncContentWithTitle() |
String |
toString() |
boolean |
updateFrom(Page pg) |
public Page()
public Page(String group, String id, String content, long lastUpdated) throws MalformedURLException
MalformedURLExceptionpublic Page(String group, String id, String content, String title, long created, String author) throws MalformedURLException
MalformedURLExceptionpublic void repair()
throws MalformedURLException
MalformedURLExceptionpublic String getContent()
public void syncContentWithTitle()
public String getTitle()
public Date getCreated()
public Date getUpdated()
public String getCurrentAuthor()
public String getGroup()
public CharSequence render()
public static String readTitle(BufferedReader reader) throws IOException
IOExceptionpublic boolean updateFrom(Page pg)
public static String serverPathFor(String group, String title) throws MalformedURLException
MalformedURLExceptionpublic String getId()
public void setId(String id)
Copyright © 2013. All Rights Reserved.