Package org.fugerit.java.doc.base.facade
Class DocHandlerFacade
- java.lang.Object
-
- org.fugerit.java.doc.base.facade.DocHandlerFacade
-
- All Implemented Interfaces:
Serializable
public class DocHandlerFacade extends Object implements Serializable
DocHandlerFacade Starting from version 0.2.X registration of type handlers changes : Now is possible to register a type handler both for type (ex. pdf) or key (ex. pdf-fop, pdf-itext, pdf-box)- Author:
- fugerit
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ERROR_ON_DUPLICATE
static boolean
DEFAULT_REGISTER_FOR_TYPE
-
Constructor Summary
Constructors Constructor Description DocHandlerFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
direct(Reader xml, String type, OutputStream os)
void
direct(Reader xml, String type, DocOutput docOutput)
DocTypeHandler
findHandler(String id)
void
handle(DocInput docInput, DocOutput docOutput)
Collection<DocTypeHandler>
handlers()
org.fugerit.java.core.util.collection.ListMapStringKey<DocTypeHandler>
listHandlersForType(String type)
void
registerHandler(DocTypeHandler handler)
void
registerHandler(DocTypeHandler handler, boolean registerForType, boolean errorOnDuplicate)
void
registerHandlerAndId(String id, DocTypeHandler handler)
void
registerHandlerAndId(String id, DocTypeHandler handler, boolean allowDuplicatedId)
-
-
-
Field Detail
-
DEFAULT_REGISTER_FOR_TYPE
public static final boolean DEFAULT_REGISTER_FOR_TYPE
- See Also:
- Constant Field Values
-
DEFAULT_ERROR_ON_DUPLICATE
public static final boolean DEFAULT_ERROR_ON_DUPLICATE
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerHandler
public void registerHandler(DocTypeHandler handler, boolean registerForType, boolean errorOnDuplicate) throws Exception
- Throws:
Exception
-
registerHandlerAndId
public void registerHandlerAndId(String id, DocTypeHandler handler) throws Exception
- Throws:
Exception
-
registerHandlerAndId
public void registerHandlerAndId(String id, DocTypeHandler handler, boolean allowDuplicatedId) throws Exception
- Throws:
Exception
-
registerHandler
public void registerHandler(DocTypeHandler handler) throws Exception
- Throws:
Exception
-
handle
public void handle(DocInput docInput, DocOutput docOutput) throws Exception
- Throws:
Exception
-
direct
public void direct(Reader xml, String type, DocOutput docOutput) throws Exception
- Throws:
Exception
-
direct
public void direct(Reader xml, String type, OutputStream os) throws Exception
- Throws:
Exception
-
findHandler
public DocTypeHandler findHandler(String id)
-
listHandlersForType
public org.fugerit.java.core.util.collection.ListMapStringKey<DocTypeHandler> listHandlersForType(String type)
-
handlers
public Collection<DocTypeHandler> handlers()
-
-