public class PlantUMLSerializer extends DefaultHandler2 implements Serializer, Initializable
Modifier and Type | Field and Description |
---|---|
private StringBuilder |
_buffer
Buffer to store plantuml script
|
private OutputStream |
_out
OutputStream where the requested resource should be serialized
|
private static String |
PLANTUML_LIMIT_SIZE
Planuml picture size
|
ROLE
Constructor and Description |
---|
PlantUMLSerializer() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
String |
getMimeType() |
void |
initialize() |
void |
setOutputStream(OutputStream out) |
boolean |
shouldSetContentLength() |
void |
startDocument() |
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
private static final String PLANTUML_LIMIT_SIZE
private StringBuilder _buffer
private OutputStream _out
public PlantUMLSerializer()
public void initialize() throws Exception
initialize
in interface Initializable
Exception
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void setOutputStream(OutputStream out) throws IOException
setOutputStream
in interface SitemapOutputComponent
IOException
public String getMimeType()
getMimeType
in interface SitemapOutputComponent
public boolean shouldSetContentLength()
shouldSetContentLength
in interface SitemapOutputComponent