org.apache.ws.commons.serialize
public class XMLWriterImpl extends Object implements XMLWriter
Method Summary | |
---|---|
boolean | canEncode(char c) |
void | characters(char[] ch, int start, int length) Inserts a string of characters into the document. |
void | endDocument() This method finishs the handlers action. |
void | endElement(String namespaceURI, String localName, String qName) Terminates an element. |
void | endPrefixMapping(String prefix) Terminates use of a namespace prefix. |
Locator | getDocumentLocator() Returns the locator |
String | getEncoding() |
String | getIndentString() |
String | getLineFeed() |
Writer | getWriter() Returns the JaxbXMLSerializers Writer. |
void | ignorableWhitespace(char[] ch, int start, int length) Calls the character method with the same arguments. |
boolean | isDeclarating() |
boolean | isFlushing() |
boolean | isIndenting() |
void | processingInstruction(String target, String data) Inserts a processing instruction.
|
void | setDeclarating(boolean pDeclarating) |
void | setDocumentLocator(Locator pLocator) Sets the locator.
|
void | setEncoding(String pEncoding) |
void | setFlushing(boolean pFlushing) |
void | setIndenting(boolean pIndenting) |
void | setIndentString(String pIndentString) |
void | setLineFeed(String pLineFeed) |
void | setWriter(Writer pWriter) Sets the JaxbXMLSerializers Writer. |
void | skippedEntity(String ent) Not actually implemented, because I don't know how to skip entities.
|
void | startDocument() Starts a document. |
void | startElement(String namespaceURI, String localName, String qName, Attributes attr) Starts a new element.
|
void | startPrefixMapping(String prefix, String namespaceURI) Starts use of a namespace prefix. |
Parameters: ch The characters being inserted. A substring, to be precise. start Index of the first character length Number of characters being inserted
Throws: SAXException Thrown in case of an IOException
This method finishs the handlers action. After calling endDocument you may start a new action by calling startDocument again.
Throws: SAXException Not actually thrown, just for compliance to the interface specification.
Terminates an element.
Parameters: namespaceURI The namespace URI, if any, or null localName The local name, without prefix, or null qName The qualified name, including a prefix, or null
Throws: SAXException Thrown in case of an IOException.
Terminates use of a namespace prefix.
Parameters: prefix The prefix being abandoned.
Throws: SAXException Not actually thrown, just for compliance to the interface specification.
Returns: A locator previously set with setDocumentLocator or null.
See Also: XMLWriterImpl
Returns the JaxbXMLSerializers Writer.
Parameters: ch A string of whitespace characters being inserted into the document. start The index of the first character. length The number of characters.
Throws: SAXException Thrown in case of an IOException.
Parameters: target The PI target data The PI data
Throws: SAXException Thrown in case of an IOException
Parameters: pLocator A locator for use in case of errors
See Also: XMLWriterImpl
Sets the JaxbXMLSerializers Writer.
Parameters: ent The entity being skipped.
Throws: SAXException Not actually thrown, just for compliance to the interface specification.
Starts a document.
Throws: SAXException Not actually thrown, just for compliance to the interface specification.
Parameters: namespaceURI The namespace URI, if any, or null localName The local name, without prefix, or null qName The qualified name, including a prefix, or null attr The element attributes
Throws: SAXException Thrown in case of an IOException.
Starts use of a namespace prefix.
Parameters: namespaceURI The namespace URI prefix The prefix
Throws: SAXException Not actually thrown, just for compliance to the interface specification.