org.icepdf.core.util.content
Class ContentParserFactory

java.lang.Object
  extended by org.icepdf.core.util.content.ContentParserFactory

public class ContentParserFactory
extends java.lang.Object

ContentParserFactory will reflectively load the PRO parsing engine if found on the class path.

Since:
5.0

Method Summary
 ContentParser getContentParser(Library library, Resources resources)
          Factory call to return the content parser associated with the given product version.
static ContentParserFactory getInstance()
          Returns a static instance of the ContentParserclass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentParserFactory getInstance()

Returns a static instance of the ContentParserclass.

Returns:
instance of the ContentParser.

getContentParser

public ContentParser getContentParser(Library library,
                                      Resources resources)
Factory call to return the content parser associated with the given product version.

Parameters:
library - document library
resources - page's parent resource object.
Returns:
implementation of the ContentParser interface.