public abstract class AbstractDocumentHandler extends java.io.Writer implements IDocumentHandler
IDocumentHandler.IDocumentHandler.TextLocationTEXT_BEFORE_PROPERTY, TEXT_BODY_PROPERTY, TEXT_END_PROPERTY| Constructor and Description |
|---|
AbstractDocumentHandler(BufferedElement parent,
IContext context,
java.lang.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() |
java.io.Writer |
getCurrentWriter() |
java.lang.String |
getEntryName() |
BufferedElement |
getParent() |
java.lang.String |
getTextBefore() |
java.lang.String |
getTextBody() |
java.lang.String |
getTextEnd() |
void |
handleString(java.lang.String s)
Text content.
|
void |
popTempWriter(java.lang.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.
|
java.lang.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, java.lang.String entryName)
public void handleString(java.lang.String s)
throws java.io.IOException
IDocumentHandlerhandleString in interface IDocumentHandlerjava.io.IOExceptionpublic final void startOrderedList(ListProperties properties) throws java.io.IOException
IDocumentHandlerstartOrderedList in interface IDocumentHandlerjava.io.IOExceptionpublic final void endOrderedList()
throws java.io.IOException
IDocumentHandlerendOrderedList in interface IDocumentHandlerjava.io.IOExceptionpublic final void startUnorderedList(ListProperties properties) throws java.io.IOException
IDocumentHandlerstartUnorderedList in interface IDocumentHandlerjava.io.IOExceptionpublic final void endUnorderedList()
throws java.io.IOException
IDocumentHandlerendUnorderedList in interface IDocumentHandlerjava.io.IOExceptionprotected boolean getCurrentListOrder()
protected int getCurrentListIndex()
public final void startTable(TableProperties properties) throws java.io.IOException
IDocumentHandlerstartTable in interface IDocumentHandlerjava.io.IOExceptionpublic final void endTable()
throws java.io.IOException
IDocumentHandlerendTable in interface IDocumentHandlerjava.io.IOExceptionpublic final void startTableRow(TableRowProperties properties) throws java.io.IOException
IDocumentHandlerstartTableRow in interface IDocumentHandlerproperties - table row properties.java.io.IOExceptionpublic final void endTableRow()
throws java.io.IOException
IDocumentHandlerendTableRow in interface IDocumentHandlerjava.io.IOExceptionpublic final void startTableCell(TableCellProperties properties) throws java.io.IOException
IDocumentHandlerstartTableCell in interface IDocumentHandlerproperties - table cell propertie.java.io.IOExceptionpublic final void endTableCell()
throws java.io.IOException
IDocumentHandlerendTableCell in interface IDocumentHandlerjava.io.IOExceptionpublic BufferedElement getParent()
public IContext getContext()
public java.lang.String getTextBefore()
getTextBefore in interface ITransformResultpublic java.lang.String getTextBody()
getTextBody in interface ITransformResultpublic java.lang.String getTextEnd()
getTextEnd in interface ITransformResultpublic void setTextLocation(IDocumentHandler.TextLocation location)
public void pushTempWriter()
public void popTempWriter(java.lang.String before)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.Writerjava.io.IOExceptionpublic void write(char[] arg0,
int arg1,
int arg2)
throws java.io.IOException
write in class java.io.Writerjava.io.IOExceptionpublic java.io.Writer getCurrentWriter()
public java.lang.String getEntryName()
public java.lang.String toString()
toString in class java.lang.Objectprotected abstract void doStartUnorderedList(ListProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doStartOrderedList(ListProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doEndUnorderedList()
throws java.io.IOException
java.io.IOExceptionprotected abstract void doEndOrderedList()
throws java.io.IOException
java.io.IOExceptionprotected abstract void doStartTable(TableProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doEndTable(TableProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doStartTableRow(TableRowProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doEndTableRow()
throws java.io.IOException
java.io.IOExceptionprotected abstract void doStartTableCell(TableCellProperties properties) throws java.io.IOException
java.io.IOExceptionprotected abstract void doEndTableCell()
throws java.io.IOException
java.io.IOExceptionCopyright © 2024. All Rights Reserved.