| java.lang.Object org.jasig.portal.serialize.BaseMarkupSerializer org.jasig.portal.serialize.HTMLSerializer org.jasig.portal.serialize.CachingHTMLSerializer
Method Summary | |
public void | flush() | public String | getCache() | public void | printRawCharacters(String text) Allows one to print a String of characters directly to the output stream. | public void | setDocumentStarted(boolean setting) Let the serializer know if the document has already been started. | public void | setOutputByteStream(OutputStream output) | public void | setOutputCharStream(Writer writer) | public void | setOutputFormat(OutputFormat format) | public boolean | startCaching() When starting caching if we are inside an opening tag the ">" will
be written in order for the ">" to be included with the correct cache.
Normally the serializer doesn't know if a ">" or "/>" should be written
until some content is received or the tag is closed. | public boolean | stopCaching() When stopping caching if we are inside an opening tag the ">" will
be written in order for the ">" to be included with the correct cache.
Normally the serializer doesn't know if a ">" or "/>" should be written
until some content is received or the tag is closed. |
CachingHTMLSerializer | protected CachingHTMLSerializer(boolean xhtml, OutputFormat format)(Code) | | Constructs a new HTML/XHTML serializer depending on the value of
xhtml. The serializer cannot be used without calling
init() first.
Parameters: xhtml - True if XHTML serializing |
CachingHTMLSerializer | public CachingHTMLSerializer(Writer writer, OutputFormat format)(Code) | | Constructs a new serializer that writes to the specified writer
using the specified output format. If format is null,
will use a default output format.
Parameters: writer - The writer to use Parameters: format - The output format to use, null for the default |
CachingHTMLSerializer | public CachingHTMLSerializer(OutputStream output, OutputFormat format)(Code) | | Constructs a new serializer that writes to the specified output
stream using the specified output format. If format
is null, will use a default output format.
Parameters: output - The output stream to use Parameters: format - The output format to use, null for the default |
printRawCharacters | public void printRawCharacters(String text) throws IOException(Code) | | Allows one to print a String of characters directly to the output stream.
Parameters: text - a String value |
setDocumentStarted | public void setDocumentStarted(boolean setting)(Code) | | Let the serializer know if the document has already been started.
Parameters: setting - a boolean value |
setOutputCharStream | public void setOutputCharStream(Writer writer)(Code) | | |
startCaching | public boolean startCaching() throws IOException(Code) | | When starting caching if we are inside an opening tag the ">" will
be written in order for the ">" to be included with the correct cache.
Normally the serializer doesn't know if a ">" or "/>" should be written
until some content is received or the tag is closed. When starting
caching after an opening tag the tag will be assumed to have some content
and will write out the ">" before starting the cache.
|
stopCaching | public boolean stopCaching() throws IOException(Code) | | When stopping caching if we are inside an opening tag the ">" will
be written in order for the ">" to be included with the correct cache.
Normally the serializer doesn't know if a ">" or "/>" should be written
until some content is received or the tag is closed. When starting
caching after an opening tag the tag will be assumed to have some content
and will write out the ">" before starting the cache.
|
Fields inherited from org.jasig.portal.serialize.HTMLSerializer | final public static String XHTMLNamespace(Code)(Java Doc)
|
Methods inherited from org.jasig.portal.serialize.HTMLSerializer | protected String appendAnchorIfNecessary(String elementName, String attributeName, String attributeValue)(Code)(Java Doc) public void characters(char[] chars, int start, int length) throws SAXException(Code)(Java Doc) protected void characters(String text) throws IOException(Code)(Java Doc) public void endElement(String namespaceURI, String localName, String rawName) throws SAXException(Code)(Java Doc) public void endElement(String tagName) throws SAXException(Code)(Java Doc) public void endElementIO(String namespaceURI, String localName, String rawName) throws IOException(Code)(Java Doc) protected String escapeURI(String uri)(Code)(Java Doc) protected String getEntityRef(int ch)(Code)(Java Doc) protected void serializeElement(Element elem) throws IOException(Code)(Java Doc) public void setOutputFormat(OutputFormat format)(Code)(Java Doc) public void setXHTMLNamespace(String newNamespace)(Code)(Java Doc) public boolean shouldNotExpandEndTagForEmptyElement(String elementName)(Code)(Java Doc) public void startAnchoring(String anchorId)(Code)(Java Doc) protected void startDocument(String rootTagName) throws IOException(Code)(Java Doc) public void startElement(String namespaceURI, String localName, String rawName, Attributes attrs) throws SAXException(Code)(Java Doc) public void startElement(String tagName, AttributeList attrs) throws SAXException(Code)(Java Doc) public void stopAnchoring()(Code)(Java Doc)
|
Methods inherited from org.jasig.portal.serialize.BaseMarkupSerializer | protected String appendAnchorIfNecessary(String elementName, String attributeName, String attributeValue)(Code)(Java Doc) public ContentHandler asContentHandler() throws IOException(Code)(Java Doc) public DOMSerializer asDOMSerializer() throws IOException(Code)(Java Doc) public DocumentHandler asDocumentHandler() throws IOException(Code)(Java Doc) public void attributeDecl(String eName, String aName, String type, String valueDefault, String value) throws SAXException(Code)(Java Doc) public void characters(char[] chars, int start, int length) throws SAXException(Code)(Java Doc) protected void characters(String text) throws IOException(Code)(Java Doc) protected void checkUnboundNamespacePrefixedNode(Node node) throws IOException(Code)(Java Doc) public void comment(char[] chars, int start, int length) throws SAXException(Code)(Java Doc) public void comment(String text) throws IOException(Code)(Java Doc) protected ElementState content() throws IOException(Code)(Java Doc) public void elementDecl(String name, String model) throws SAXException(Code)(Java Doc) public void endCDATA()(Code)(Java Doc) public void endDTD()(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endEntity(String name)(Code)(Java Doc) public void endNonEscaping()(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void endPreserving()(Code)(Java Doc) protected ElementState enterElementState(String namespaceURI, String localName, String rawName, boolean preserveSpace)(Code)(Java Doc) public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) protected void fatalError(String message) throws IOException(Code)(Java Doc) protected ElementState getElementState()(Code)(Java Doc) abstract protected String getEntityRef(int ch)(Code)(Java Doc) protected String getPrefix(String namespaceURI)(Code)(Java Doc) public void ignorableWhitespace(char[] chars, int start, int length) throws SAXException(Code)(Java Doc) public void internalEntityDecl(String name, String value) throws SAXException(Code)(Java Doc) protected boolean isDocumentState()(Code)(Java Doc) protected ElementState leaveElementState()(Code)(Java Doc) protected DOMError modifyDOMError(String message, short severity, String type, Node node)(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) protected void prepare() throws IOException(Code)(Java Doc) protected void printCDATAText(String text) throws IOException(Code)(Java Doc) protected void printDoctypeURL(String url) throws IOException(Code)(Java Doc) protected void printEscaped(int ch) throws IOException(Code)(Java Doc) protected void printEscaped(String source) throws IOException(Code)(Java Doc) final void printHex(int ch) throws IOException(Code)(Java Doc) protected void printText(char[] chars, int start, int length, boolean preserveSpace, boolean unescaped) throws IOException(Code)(Java Doc) protected void printText(String text, boolean preserveSpace, boolean unescaped) throws IOException(Code)(Java Doc) final public void processingInstruction(String target, String code) throws SAXException(Code)(Java Doc) public void processingInstructionIO(String target, String code) throws IOException(Code)(Java Doc) public boolean reset()(Code)(Java Doc) public void serialize(Element elem) throws IOException(Code)(Java Doc) public void serialize(DocumentFragment frag) throws IOException(Code)(Java Doc) public void serialize(Document doc) throws IOException(Code)(Java Doc) abstract protected void serializeElement(Element elem) throws IOException(Code)(Java Doc) protected void serializeNode(Node node) throws IOException(Code)(Java Doc) protected void serializePreRoot() throws IOException(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setOutputByteStream(OutputStream output)(Code)(Java Doc) public void setOutputCharStream(Writer writer)(Code)(Java Doc) public void setOutputFormat(OutputFormat format)(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startAnchoring(String anchorId)(Code)(Java Doc) public void startCDATA()(Code)(Java Doc) final public void startDTD(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startEntity(String name)(Code)(Java Doc) public void startNonEscaping()(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void startPreserving()(Code)(Java Doc) public void stopAnchoring()(Code)(Java Doc) protected void surrogates(int high, int low) throws IOException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc)
|
|
|