|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.dao.Exporter
This class is used to export export categories and favorites to external ressources (for example OPML files).
Field Summary | |
private org.jdom.Document |
document
|
Constructor Summary | |
Exporter()
Instantiate a new Exporter for OPML files |
|
Exporter(String root,
String filePath)
Instantiate a new Exporter for the given Format |
Method Summary | |
void |
exportCategoryToOPML(Category rssOwlCategory)
Export the given Category to a XML OPML file. |
private void |
exportCategoryToOPML(Category rssOwlCategory,
org.jdom.Element element)
Recursivly export categories / favorits to the OPML file |
void |
exportFavoriteToOPML(Favorite favorite,
Category rssOwlCategory)
Export the given Favorite to a XML OPML file. |
void |
exportResultsToOPML(Hashtable links,
String searchTopic)
Export the given results to a XML OPML file. |
org.jdom.Document |
getDocument()
Get the Document |
private org.jdom.Document |
initExportToFile(String rootOpen,
String rootClose)
Init the document for the export to a file |
private org.jdom.Document |
initExportToFile(String rootOpen,
String rootClose,
File file)
Init the document for the export to a file |
(package private) org.jdom.Document |
initExportToFile(String rootOpen,
String rootClose,
String filePath)
Init the document for the export to a file. |
private org.jdom.Element |
prepareOPMLDocument(org.jdom.Document document)
Setup default OPML Template with head tag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.jdom.Document document
Constructor Detail |
public Exporter()
public Exporter(String root, String filePath)
root
- Name of the root ElementfilePath
- The path to write the Document toMethod Detail |
public void exportCategoryToOPML(Category rssOwlCategory)
rssOwlCategory
- Selected Categorypublic void exportFavoriteToOPML(Favorite favorite, Category rssOwlCategory)
rssOwlCategory
- Selected Categoryfavorite
- Selected Favoritepublic void exportResultsToOPML(Hashtable links, String searchTopic)
links
- Some links with title to exportsearchTopic
- The search topic that was usedpublic org.jdom.Document getDocument()
private void exportCategoryToOPML(Category rssOwlCategory, org.jdom.Element element)
rssOwlCategory
- Current rssOwlCategoryelement
- Current outline elementprivate org.jdom.Document initExportToFile(String rootOpen, String rootClose)
rootOpen
- Open tag for the root elementrootClose
- Close tag for the root element
private org.jdom.Document initExportToFile(String rootOpen, String rootClose, File file)
rootOpen
- Open tag for the root elementrootClose
- Close tag for the root elementfile
- File that should be initialized
private org.jdom.Element prepareOPMLDocument(org.jdom.Document document)
document
- The current working OPML XML document
org.jdom.Document initExportToFile(String rootOpen, String rootClose, String filePath)
rootOpen
- Open tag for the root elementrootClose
- Close tag for the root elementfilePath
- Path to the file that should be initialized
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |