|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.serialize.DebugCachingSerializer
public class DebugCachingSerializer
| Constructor Summary | |
|---|---|
DebugCachingSerializer()
|
|
| Method Summary | |
|---|---|
ContentHandler |
asContentHandler()
Return a ContentHandler interface into this serializer. |
DocumentHandler |
asDocumentHandler()
Return a DocumentHandler interface into this serializer. |
DOMSerializer |
asDOMSerializer()
Return a DOMSerializer interface into this serializer. |
void |
attributeDecl(String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
|
void |
characters(char[] arg0,
int arg1,
int arg2)
|
void |
comment(char[] arg0,
int arg1,
int arg2)
|
void |
elementDecl(String arg0,
String arg1)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String arg0)
|
void |
endElement(String arg0,
String arg1,
String arg2)
|
void |
endEntity(String arg0)
|
void |
endPrefixMapping(String arg0)
|
void |
externalEntityDecl(String arg0,
String arg1,
String arg2)
|
void |
flush()
Flushes all the buffers |
String |
getCache()
Asks serializer for an accumulated cache content. |
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
|
void |
internalEntityDecl(String arg0,
String arg1)
|
void |
notationDecl(String arg0,
String arg1,
String arg2)
|
void |
printRawCharacters(String text)
Allows one to print a String of characters directly to the output stream. |
void |
processingInstruction(String arg0,
String arg1)
|
void |
serialize(Document doc)
Serializes the DOM document. |
void |
serialize(DocumentFragment frag)
Serializes the DOM document fragment. |
void |
serialize(Element elem)
Serialized the DOM element. |
void |
setDocumentLocator(Locator arg0)
|
void |
setDocumentStarted(boolean setting)
Let the serializer know if the document has already been started. |
void |
setOutputByteStream(OutputStream output)
Specifies an output stream to which the document should be serialized. |
void |
setOutputCharStream(Writer output)
Specifies a writer to which the document should be serialized. |
void |
setOutputFormat(OutputFormat format)
Specifies an output format for this serializer. |
void |
skippedEntity(String arg0)
|
void |
startAnchoring(String anchorId)
Signify that the serializer should begin to append the anchor ID to URLs of its choosing. |
boolean |
startCaching()
Commands serializer to start caching. |
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String arg0,
String arg1,
String arg2)
|
void |
startElement(String arg0,
AttributeList arg1)
|
void |
startElement(String arg0,
String arg1,
String arg2,
Attributes arg3)
|
void |
startEntity(String arg0)
|
void |
startPrefixMapping(String arg0,
String arg1)
|
void |
stopAnchoring()
Signify that anchoring is no longer desired by the serializer. |
boolean |
stopCaching()
Commands serializer to stop caching. |
void |
unparsedEntityDecl(String arg0,
String arg1,
String arg2,
String arg3)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DebugCachingSerializer()
| Method Detail |
|---|
public void flush()
throws IOException
CachingSerializer
flush in interface CachingSerializerflush in interface MarkupSerializerIOException - if an error occurs
public String getCache()
throws UnsupportedEncodingException,
IOException
CachingSerializer
getCache in interface CachingSerializerString cache.
UnsupportedEncodingException - if the OutputFormat specified unsupported encoding
IOException
public void printRawCharacters(String text)
throws IOException
CachingSerializerString of characters directly to the output stream.
printRawCharacters in interface CachingSerializertext - a String value
IOExceptionpublic void setDocumentStarted(boolean setting)
CachingSerializer
setDocumentStarted in interface CachingSerializersetting - a boolean value
public boolean startCaching()
throws IOException
CachingSerializer
startCaching in interface CachingSerializerfalse if the serializer is already caching.
IOException
public boolean stopCaching()
throws IOException
CachingSerializer
stopCaching in interface CachingSerializerfalse if the serializer was NOT caching.
IOException
public void characters(char[] arg0,
int arg1,
int arg2)
throws SAXException
characters in interface ContentHandlercharacters in interface DocumentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in interface DocumentHandlerSAXException
public void endElement(String arg0,
String arg1,
String arg2)
throws SAXException
endElement in interface ContentHandlerSAXException
public void endPrefixMapping(String arg0)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in interface DocumentHandlerSAXException
public void processingInstruction(String arg0,
String arg1)
throws SAXException
processingInstruction in interface ContentHandlerprocessingInstruction in interface DocumentHandlerSAXExceptionpublic void setDocumentLocator(Locator arg0)
setDocumentLocator in interface ContentHandlersetDocumentLocator in interface DocumentHandler
public void skippedEntity(String arg0)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in interface DocumentHandlerSAXException
public void startElement(String arg0,
String arg1,
String arg2,
Attributes arg3)
throws SAXException
startElement in interface ContentHandlerSAXException
public void startPrefixMapping(String arg0,
String arg1)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endElement(String arg0)
throws SAXException
endElement in interface DocumentHandlerSAXException
public void startElement(String arg0,
AttributeList arg1)
throws SAXException
startElement in interface DocumentHandlerSAXException
public void comment(char[] arg0,
int arg1,
int arg2)
throws SAXException
comment in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void endEntity(String arg0)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void startDTD(String arg0,
String arg1,
String arg2)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void startEntity(String arg0)
throws SAXException
startEntity in interface LexicalHandlerSAXException
public void notationDecl(String arg0,
String arg1,
String arg2)
throws SAXException
notationDecl in interface DTDHandlerSAXException
public void unparsedEntityDecl(String arg0,
String arg1,
String arg2,
String arg3)
throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXException
public void attributeDecl(String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
throws SAXException
attributeDecl in interface DeclHandlerSAXException
public void elementDecl(String arg0,
String arg1)
throws SAXException
elementDecl in interface DeclHandlerSAXException
public void externalEntityDecl(String arg0,
String arg1,
String arg2)
throws SAXException
externalEntityDecl in interface DeclHandlerSAXException
public void internalEntityDecl(String arg0,
String arg1)
throws SAXException
internalEntityDecl in interface DeclHandlerSAXException
public void serialize(Element elem)
throws IOException
DOMSerializer
serialize in interface DOMSerializerelem - The element to serialize
IOException - An I/O exception occured while
serializing
public void serialize(Document doc)
throws IOException
DOMSerializer
serialize in interface DOMSerializerdoc - The document to serialize
IOException - An I/O exception occured while
serializing
public void serialize(DocumentFragment frag)
throws IOException
DOMSerializer
serialize in interface DOMSerializerfrag - The document fragment to serialize
IOException - An I/O exception occured while
serializing
public ContentHandler asContentHandler()
throws IOException
SerializerContentHandler interface into this serializer.
If the serializer does not support the ContentHandler
interface, it should return null.
asContentHandler in interface SerializerIOException
public DOMSerializer asDOMSerializer()
throws IOException
SerializerDOMSerializer interface into this serializer.
If the serializer does not support the DOMSerializer
interface, it should return null.
asDOMSerializer in interface SerializerIOException
public DocumentHandler asDocumentHandler()
throws IOException
SerializerDocumentHandler interface into this serializer.
If the serializer does not support the DocumentHandler
interface, it should return null.
asDocumentHandler in interface SerializerIOExceptionpublic void setOutputByteStream(OutputStream output)
Serializer
setOutputByteStream in interface Serializerpublic void setOutputCharStream(Writer output)
Serializer
setOutputCharStream in interface Serializerpublic void setOutputFormat(OutputFormat format)
Serializer
setOutputFormat in interface Serializerformat - The output format to usepublic void startAnchoring(String anchorId)
IAnchoringSerializer
startAnchoring in interface IAnchoringSerializeranchorId - the anchor identifierpublic void stopAnchoring()
IAnchoringSerializer
stopAnchoring in interface IAnchoringSerializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||