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 versione 2.2.3.1 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 booleanDEFAULT_ERROR_ON_DUPLICATEstatic booleanDEFAULT_REGISTER_FOR_TYPE
-
Constructor Summary
Constructors Constructor Description DocHandlerFacade()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddirect(Reader xml, String type, OutputStream os)voiddirect(Reader xml, String type, DocOutput docOutput)DocTypeHandlerfindHandler(String id)voidhandle(DocInput docInput, DocOutput docOutput)Collection<DocTypeHandler>handlers()org.fugerit.java.core.util.collection.ListMapStringKey<DocTypeHandler>listHandlersForType(String type)voidregisterHandler(DocTypeHandler handler)voidregisterHandler(DocTypeHandler handler, boolean registerForType, boolean errorOnDuplicate)
-
-
-
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
-
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()
-
-