|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.filter.osis.OSISFilter
public class OSISFilter
Filter to convert an OSIS XML string to OSIS format.
The GNU Lesser General Public License for details.
Field Summary | |
---|---|
private static Pattern |
CHAPTER_END
Pattern to find the end of a chapter. |
private static Pattern |
DIV_END
Pattern to find the end of a div. |
private static Pattern |
DIV_START
Pattern to find the start of a div. |
private BlockingQueue<org.jdom2.input.SAXBuilder> |
saxBuilders
|
private static Pattern |
SPEECH_END
Pattern to find the end of a speech. |
private static Pattern |
SPEECH_START
Pattern to find the start of a speech. |
Constructor Summary | |
---|---|
OSISFilter()
|
Method Summary | |
---|---|
private org.jdom2.Element |
cleanTags(Book book,
Key key,
String plain)
|
OSISFilter |
clone()
This needs to be declared here so that it is visible as a method on a derived Filter. |
private org.jdom2.Element |
parse(String plain)
If the string is invalid then we might want to have more than one crack at parsing it |
List<org.jdom2.Content> |
toOSIS(Book book,
Key key,
String plain)
Converter from plain (encoded) text to OSIS data |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private BlockingQueue<org.jdom2.input.SAXBuilder> saxBuilders
private static final Pattern DIV_START
private static final Pattern DIV_END
private static final Pattern CHAPTER_END
private static final Pattern SPEECH_START
private static final Pattern SPEECH_END
Constructor Detail |
---|
public OSISFilter()
Method Detail |
---|
public List<org.jdom2.Content> toOSIS(Book book, Key key, String plain)
Filter
toOSIS
in interface Filter
book
- the bookkey
- The key for the textplain
- The encoded text
public OSISFilter clone()
Filter
clone
in interface Filter
clone
in class Object
private org.jdom2.Element cleanTags(Book book, Key key, String plain)
private org.jdom2.Element parse(String plain) throws org.jdom2.JDOMException, IOException
org.jdom2.JDOMException
IOException
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |