public abstract class AbstractDocumentHandler extends Writer implements IDocumentHandler
IDocumentHandler.IDocumentHandler.TextLocationTEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY| Constructor and Description |
|---|
AbstractDocumentHandler(BufferedElement parent,
IContext context,
String entryName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract void |
doEndOrderedList() |
protected abstract void |
doEndTable(TableProperties properties) |
protected abstract void |
doEndTableCell() |
protected abstract void |
doEndTableRow() |
protected abstract void |
doEndUnorderedList() |
protected abstract void |
doStartOrderedList(ListProperties properties) |
protected abstract void |
doStartTable(TableProperties properties) |
protected abstract void |
doStartTableCell(TableCellProperties properties) |
protected abstract void |
doStartTableRow(TableRowProperties properties) |
protected abstract void |
doStartUnorderedList(ListProperties properties) |
void |
endOrderedList()
End ordered list.
|
void |
endTable()
End table.
|
void |
endTableCell()
End table cell.
|
void |
endTableRow()
End table row.
|
void |
endUnorderedList()
End unordered list.
|
void |
flush() |
IContext |
getContext() |
protected int |
getCurrentListIndex() |
protected boolean |
getCurrentListOrder() |
Writer |
getCurrentWriter() |
String |
getEntryName() |
BufferedElement |
getParent() |
String |
getTextBefore() |
String |
getTextBody() |
String |
getTextEnd() |
void |
handleString(String s)
Text content.
|
void |
popTempWriter(String before) |
void |
pushTempWriter() |
void |
setTextLocation(IDocumentHandler.TextLocation location) |
void |
startOrderedList(ListProperties properties)
Start ordered list.
|
void |
startTable(TableProperties properties)
Start table.
|
void |
startTableCell(TableCellProperties properties)
Start table cell.
|
void |
startTableRow(TableRowProperties properties)
Start table row.
|
void |
startUnorderedList(ListProperties properties)
Start unordered list.
|
String |
toString() |
void |
write(char[] arg0,
int arg1,
int arg2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitendBold, endDocument, endHeading, endItalics, endListItem, endParagraph, endSpan, endStrike, endSubscript, endSuperscript, endUnderline, handleImage, handleLineBreak, handleReference, startBold, startDocument, startHeading, startItalics, startListItem, startParagraph, startSpan, startStrike, startSubscript, startSuperscript, startUnderlinepublic AbstractDocumentHandler(BufferedElement parent, IContext context, String entryName)
public void handleString(String s) throws IOException
IDocumentHandlerhandleString in interface IDocumentHandlerIOExceptionpublic final void startOrderedList(ListProperties properties) throws IOException
IDocumentHandlerstartOrderedList in interface IDocumentHandlerIOExceptionpublic final void endOrderedList()
throws IOException
IDocumentHandlerendOrderedList in interface IDocumentHandlerIOExceptionpublic final void startUnorderedList(ListProperties properties) throws IOException
IDocumentHandlerstartUnorderedList in interface IDocumentHandlerIOExceptionpublic final void endUnorderedList()
throws IOException
IDocumentHandlerendUnorderedList in interface IDocumentHandlerIOExceptionprotected boolean getCurrentListOrder()
protected int getCurrentListIndex()
public final void startTable(TableProperties properties) throws IOException
IDocumentHandlerstartTable in interface IDocumentHandlerIOExceptionpublic final void endTable()
throws IOException
IDocumentHandlerendTable in interface IDocumentHandlerIOExceptionpublic final void startTableRow(TableRowProperties properties) throws IOException
IDocumentHandlerstartTableRow in interface IDocumentHandlerproperties - table row properties.IOExceptionpublic final void endTableRow()
throws IOException
IDocumentHandlerendTableRow in interface IDocumentHandlerIOExceptionpublic final void startTableCell(TableCellProperties properties) throws IOException
IDocumentHandlerstartTableCell in interface IDocumentHandlerproperties - table cell propertie.IOExceptionpublic final void endTableCell()
throws IOException
IDocumentHandlerendTableCell in interface IDocumentHandlerIOExceptionpublic BufferedElement getParent()
public IContext getContext()
public String getTextBefore()
getTextBefore in interface ITransformResultpublic String getTextBody()
getTextBody in interface ITransformResultpublic String getTextEnd()
getTextEnd in interface ITransformResultpublic void setTextLocation(IDocumentHandler.TextLocation location)
public void pushTempWriter()
public void popTempWriter(String before) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] arg0,
int arg1,
int arg2)
throws IOException
write in class WriterIOExceptionpublic Writer getCurrentWriter()
public String getEntryName()
protected abstract void doStartUnorderedList(ListProperties properties) throws IOException
IOExceptionprotected abstract void doStartOrderedList(ListProperties properties) throws IOException
IOExceptionprotected abstract void doEndUnorderedList()
throws IOException
IOExceptionprotected abstract void doEndOrderedList()
throws IOException
IOExceptionprotected abstract void doStartTable(TableProperties properties) throws IOException
IOExceptionprotected abstract void doEndTable(TableProperties properties) throws IOException
IOExceptionprotected abstract void doStartTableRow(TableRowProperties properties) throws IOException
IOExceptionprotected abstract void doEndTableRow()
throws IOException
IOExceptionprotected abstract void doStartTableCell(TableCellProperties properties) throws IOException
IOExceptionprotected abstract void doEndTableCell()
throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.