|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BackendDriver
This interface describes a back-end as extension to a DocumentWriter.
| Method Summary | |
|---|---|
void |
add(PagePipe processor)
Adder for a processor. |
void |
close()
This method is invoked upon the end of the processing. |
DocumentWriter |
getDocumentWriter()
Getter for the document writer. |
java.lang.String |
getDocumentWriterType()
Getter for the document writer. |
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
int |
getPages()
Getter for the number of pages already produced. |
void |
setDocumentWriterFactory(DocumentWriterFactory documentWriterFactory)
Setter for the document writer factory. |
void |
setDocumentWriterType(java.lang.String type)
Setter for the document writer. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
int |
shipout(Page page)
This is the entry point for the document writer. |
| Method Detail |
|---|
void add(PagePipe processor)
processor - the processor to append
void close()
throws BackendException
BackendException - in case of an error
DocumentWriter getDocumentWriter()
throws DocumentWriterException
DocumentWriterException - in case of an errorjava.lang.String getDocumentWriterType()
java.lang.String getExtension()
int getPages()
void setDocumentWriterFactory(DocumentWriterFactory documentWriterFactory)
documentWriterFactory - the document writer factory to set
void setDocumentWriterType(java.lang.String type)
throws BackendDocumentWriterDefinedException,
BackendUnknownDocumentWriterException
type - the document writer type
BackendDocumentWriterDefinedException - in case that the document
writer is already in use
BackendUnknownDocumentWriterException - in case that the document
writer has no associated configuration
void setParameter(java.lang.String name,
java.lang.String value)
name - the name of the parametervalue - the value of the parameter
int shipout(Page page)
throws BackendException
page - the page to send
BackendException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||