com.openharbor.beck.apache.axis
Class AxisWriter
java.lang.Object
java.io.Writer
com.openharbor.beck.write.XMLWriter
com.openharbor.beck.apache.axis.AxisWriter
- public class AxisWriter
- extends XMLWriter
Converts from XMLWriter to an Axis SerializationContext.
Field Summary |
protected org.xml.sax.helpers.AttributesImpl |
attributes
|
protected org.apache.axis.encoding.SerializationContext |
context
|
protected javax.xml.namespace.QName |
elementName
|
Fields inherited from class java.io.Writer |
lock |
Constructor Summary |
AxisWriter(org.apache.axis.encoding.SerializationContext context)
|
Method Summary |
void |
attribute(XMLName name,
java.lang.String value)
Add an attribute to the current element. |
protected java.lang.String |
choosePrefix(java.lang.String namespace,
java.util.Map declared)
|
void |
close()
|
protected void |
declareNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
|
void |
endElement()
|
void |
flush()
|
protected void |
flushElement()
|
protected void |
startElement(XMLName name)
|
void |
write(char[] content,
int off,
int len)
Add text content to the current element. |
void |
write(java.lang.String content)
|
void |
write(java.lang.String content,
int off,
int len)
|
Methods inherited from class com.openharbor.beck.write.XMLWriter |
attributes, getDocumentState, getElementStack, getElementStackTop, namespace, namespace, newMapKey, prefixToNamespace, resolveNamespace, setDocumentState, startElement |
Methods inherited from class java.io.Writer |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected org.apache.axis.encoding.SerializationContext context
elementName
protected javax.xml.namespace.QName elementName
attributes
protected org.xml.sax.helpers.AttributesImpl attributes
AxisWriter
public AxisWriter(org.apache.axis.encoding.SerializationContext context)
flushElement
protected void flushElement()
throws java.io.IOException
- Throws:
java.io.IOException
startElement
protected void startElement(XMLName name)
throws java.io.IOException
- Overrides:
startElement
in class XMLWriter
- Throws:
java.io.IOException
choosePrefix
protected java.lang.String choosePrefix(java.lang.String namespace,
java.util.Map declared)
throws java.io.IOException
- Overrides:
choosePrefix
in class XMLWriter
- Throws:
java.io.IOException
declareNamespace
protected void declareNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
- Specified by:
declareNamespace
in class XMLWriter
attribute
public void attribute(XMLName name,
java.lang.String value)
throws java.io.IOException
- Description copied from class:
XMLWriter
- Add an attribute to the current element.
If it's an xsi:type attribute, set the Type of the current element accordingly.
- Overrides:
attribute
in class XMLWriter
- Throws:
java.io.IOException
- if text or sub-elements have already been written in this element.
write
public void write(java.lang.String content)
throws java.io.IOException
- Overrides:
write
in class XMLWriter
- Throws:
java.io.IOException
write
public void write(java.lang.String content,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class XMLWriter
- Throws:
java.io.IOException
write
public void write(char[] content,
int off,
int len)
throws java.io.IOException
- Description copied from class:
XMLWriter
- Add text content to the current element.
Do nothing if len <= 0.
- Specified by:
write
in class XMLWriter
- Throws:
java.io.IOException
endElement
public void endElement()
throws java.io.IOException
- Overrides:
endElement
in class XMLWriter
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException