|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.jaxme.impl.XMLWriterImpl
A simple serializer for XML documents.
| Constructor Summary | |
XMLWriterImpl()
Creates a new JaxbXmlSerializer |
|
| Method Summary | |
protected 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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
Terminates an element. |
void |
endPrefixMapping(java.lang.String prefix)
Terminates use of a namespace prefix. |
Locator |
getDocumentLocator()
Returns the locator |
JMMarshallerImpl |
getMarshaller()
Returns the JaxbXMLSerializers Marshaller. |
java.io.Writer |
getWriter()
Returns the JaxbXMLSerializers Writer. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Calls the character method with the same arguments. |
void |
init(JMMarshallerImpl pMarshaller)
Sets the JaxbXMLSerializers Marshaller. |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Inserts a processing instruction. |
void |
setDocumentLocator(Locator pLocator)
Sets the locator. |
void |
setWriter(java.io.Writer pWriter)
Sets the JaxbXMLSerializers Writer. |
void |
skippedEntity(java.lang.String ent)
Not actually implemented, because I don't know how to skip entities. |
void |
startDocument()
Starts a document. |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attr)
Starts a new element. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String namespaceURI)
Starts use of a namespace prefix. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLWriterImpl()
| Method Detail |
public void init(JMMarshallerImpl pMarshaller)
throws JAXBException
Sets the JaxbXMLSerializers Marshaller.
init in interface XMLWriterJAXBExceptionpublic JMMarshallerImpl getMarshaller()
Returns the JaxbXMLSerializers Marshaller.
public void setWriter(java.io.Writer pWriter)
throws JAXBException
Sets the JaxbXMLSerializers Writer.
setWriter in interface XMLWriterJAXBExceptionpublic java.io.Writer getWriter()
Returns the JaxbXMLSerializers Writer.
public void setDocumentLocator(Locator pLocator)
setDocumentLocator in interface ContentHandlerpLocator - A locator for use in case of errorsgetDocumentLocator()public Locator getDocumentLocator()
setDocumentLocator(org.xml.sax.Locator)
public void startPrefixMapping(java.lang.String prefix,
java.lang.String namespaceURI)
throws SAXException
Starts use of a namespace prefix.
startPrefixMapping in interface ContentHandlernamespaceURI - The namespace URIprefix - The prefix
SAXException - Not actually thrown, just for compliance to the interface specification.
public void endPrefixMapping(java.lang.String prefix)
throws SAXException
Terminates use of a namespace prefix.
endPrefixMapping in interface ContentHandlerprefix - The prefix being abandoned.
SAXException - Not actually thrown, just for compliance to the interface specification.
public void startDocument()
throws SAXException
Starts a document.
startDocument in interface ContentHandlerSAXException - Not actually thrown, just for compliance to the interface specification.
public void endDocument()
throws SAXException
This method finishs the handlers action. After calling endDocument you may start a new action by calling startDocument again.
endDocument in interface ContentHandlerSAXException - Not actually thrown, just for compliance to the
interface specification.
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerch - A string of whitespace characters being inserted into the document.start - The index of the first character.length - The number of characters.
SAXException - Thrown in case of an IOException.
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerch - The characters being inserted. A substring, to be precise.start - Index of the first characterlength - Number of characters being inserted
SAXException - Thrown in case of an IOExceptionprotected boolean canEncode(char c)
public void endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
throws SAXException
Terminates an element.
endElement in interface ContentHandlernamespaceURI - The namespace URI, if any, or nulllocalName - The local name, without prefix, or nullqName - The qualified name, including a prefix, or null
SAXException - Thrown in case of an IOException.
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
Attributes attr)
throws SAXException
startElement in interface ContentHandlernamespaceURI - The namespace URI, if any, or nulllocalName - The local name, without prefix, or nullqName - The qualified name, including a prefix, or nullattr - The element attributes
SAXException - Thrown in case of an IOException.
public void skippedEntity(java.lang.String ent)
throws SAXException
skippedEntity in interface ContentHandlerent - The entity being skipped.
SAXException - Not actually thrown, just for compliance to the interface specification.
public void processingInstruction(java.lang.String target,
java.lang.String data)
throws SAXException
processingInstruction in interface ContentHandlertarget - The PI targetdata - The PI data
SAXException - Thrown in case of an IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||