PubFactory

Inheritance: java.lang.Object

public class PubFactory

Factory for PUB objects

Constructors

ConstructorDescription
PubFactory()

Methods

MethodDescription
createParser(String fileName)Creates PUB parser for PUB file
createParser(InputStream pubStream)Creates PUB parser for PUB stream
createPdfConverter()Creates PdfConverter

PubFactory()

public PubFactory()

createParser(String fileName)

public static IPubParser createParser(String fileName)

Creates PUB parser for PUB file

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringPUB file name

Returns: IPubParser - PUB parser

createParser(InputStream pubStream)

public static IPubParser createParser(InputStream pubStream)

Creates PUB parser for PUB stream

Parameters:

ParameterTypeDescription
pubStreamjava.io.InputStreamstream with PUB data

Returns: IPubParser - PUB parser

createPdfConverter()

public static IPdfConverter createPdfConverter()

Creates PdfConverter

Returns: IPdfConverter - PdfConverter