|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alvermont.bcimport.MTFormatter
public class MTFormatter
Generates the output file in MoveableType format that can be imported by WordPress.
Field Summary | |
---|---|
static java.lang.String |
ENTRY_SEPARATOR
Separator string between entries (posts) |
static java.lang.String |
FIELD_SEPARATOR
Separator string between multi line fields within a post |
Constructor Summary | |
---|---|
MTFormatter()
Creates a new instance of WordPressFormatter |
Method Summary | |
---|---|
java.lang.String |
formatComment(Comment comment)
Format a comment entry into a string for MT import |
java.lang.String |
formatDate(java.util.Date date)
Format a date into the correct output format. |
java.lang.String |
formatPost(Post post)
Format a post entry into a string for MT import |
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 ENTRY_SEPARATOR
public static final java.lang.String FIELD_SEPARATOR
Constructor Detail |
---|
public MTFormatter()
Method Detail |
---|
public java.lang.String formatDate(java.util.Date date)
date
- The date to be formatted
public java.lang.String formatComment(Comment comment)
comment
- The comment to be formatted
public java.lang.String formatPost(Post post)
post
- The comment to be formatted
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |