net.sf.zekr.engine.bookmark
Class BookmarkTransformer

java.lang.Object
  extended by net.sf.zekr.engine.bookmark.BookmarkTransformer

public class BookmarkTransformer
extends java.lang.Object

Bookmark exporter. This class is used to export bookmark sets in HTML format (XML+XSLT).

Since:
Zekr 1.0
Author:
Mohsen Saboorian

Constructor Summary
BookmarkTransformer()
          Creates a new bookmark transformer object.
BookmarkTransformer(BookmarkSet bookmarkSet, java.io.File destFile)
           
 
Method Summary
 void export(BookmarkSet bookmarkSet, java.io.File destFile)
          Export bookmark set into an HTML file.
static BookmarkTransformer getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarkTransformer

public BookmarkTransformer(BookmarkSet bookmarkSet,
                           java.io.File destFile)

BookmarkTransformer

public BookmarkTransformer()
                    throws javax.xml.transform.TransformerConfigurationException,
                           javax.xml.transform.TransformerFactoryConfigurationError
Creates a new bookmark transformer object. This object caches a compiled in-memory XSL transformer within itself.

Throws:
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerFactoryConfigurationError
Method Detail

getInstance

public static BookmarkTransformer getInstance()
                                       throws BookmarkTransformationException
Throws:
BookmarkTransformationException

export

public void export(BookmarkSet bookmarkSet,
                   java.io.File destFile)
            throws BookmarkTransformationException
Export bookmark set into an HTML file.

Parameters:
bookmarkSet -
destFile -
Throws:
BookmarkTransformationException