| java.lang.Object org.cyberneko.html.filters.DefaultFilter org.cyberneko.html.Writer
Writer | public class Writer extends DefaultFilter (Code) | | This class implements an filter to output "canonical" files for
regression testing.
author: Andy Clark |
Constructor Summary | |
public | Writer() Creates a writer to the standard output stream using UTF-8
encoding. | public | Writer(OutputStream stream) Creates a writer with the specified output stream using UTF-8
encoding. | public | Writer(OutputStream stream, String encoding) Creates a writer with the specified output stream and encoding. | public | Writer(java.io.Writer writer) Creates a writer with the specified Java Writer. |
Method Summary | |
public void | characters(XMLString text, Augmentations augs) Characters. | protected void | chars() Prints collected characters. | public void | comment(XMLString text, Augmentations augs) Comment. | public void | doctypeDecl(String root, String pubid, String sysid, Augmentations augs) Doctype declaration. | public void | emptyElement(QName element, XMLAttributes attrs, Augmentations augs) Empty element. | public void | endElement(QName element, Augmentations augs) End element. | public void | ignorableWhitespace(XMLString text, Augmentations augs) Ignorable whitespace. | public static void | main(String[] argv) Main program. | protected void | print(String s) Prints the specified string. | public void | processingInstruction(String target, XMLString data, Augmentations augs) Processing instruction. | protected static void | sortAttrNames(XMLAttributes attrs, String[] anames, String[] auris) Sorts the attribute names. | public void | startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) Start document. | public void | startDocument(XMLLocator locator, String encoding, Augmentations augs) Start document. | public void | startElement(QName element, XMLAttributes attrs, Augmentations augs) Start element. | public void | xmlDecl(String version, String encoding, String standalone, Augmentations augs) XML declaration. |
Writer | public Writer()(Code) | | Creates a writer to the standard output stream using UTF-8
encoding.
|
Writer | public Writer(OutputStream stream)(Code) | | Creates a writer with the specified output stream using UTF-8
encoding.
|
Writer | public Writer(OutputStream stream, String encoding)(Code) | | Creates a writer with the specified output stream and encoding.
|
characters | public void characters(XMLString text, Augmentations augs) throws XNIException(Code) | | Characters.
|
chars | protected void chars()(Code) | | Prints collected characters.
|
comment | public void comment(XMLString text, Augmentations augs) throws XNIException(Code) | | Comment.
|
doctypeDecl | public void doctypeDecl(String root, String pubid, String sysid, Augmentations augs) throws XNIException(Code) | | Doctype declaration.
|
emptyElement | public void emptyElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Empty element.
|
endElement | public void endElement(QName element, Augmentations augs) throws XNIException(Code) | | End element.
|
ignorableWhitespace | public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code) | | Ignorable whitespace.
|
print | protected void print(String s)(Code) | | Prints the specified string.
|
processingInstruction | public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code) | | Processing instruction.
|
sortAttrNames | protected static void sortAttrNames(XMLAttributes attrs, String[] anames, String[] auris)(Code) | | Sorts the attribute names.
|
startDocument | public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code) | | Start document.
|
startDocument | public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code) | | Start document.
|
startElement | public void startElement(QName element, XMLAttributes attrs, Augmentations augs) throws XNIException(Code) | | Start element.
|
xmlDecl | public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code) | | XML declaration.
|
Fields inherited from org.cyberneko.html.filters.DefaultFilter | protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc) protected XMLDocumentSource fDocumentSource(Code)(Java Doc)
|
Methods inherited from org.cyberneko.html.filters.DefaultFilter | public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void doctypeDecl(String root, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc) public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc) public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc) public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public XMLDocumentSource getDocumentSource()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) protected static String[] merge(String[] array1, String[] array2)(Code)(Java Doc) public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler handler)(Code)(Java Doc) public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, NamespaceContext nscontext, Augmentations augs) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void startGeneralEntity(String name, XMLResourceIdentifier id, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException(Code)(Java Doc) public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)
|
|
|