|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.xml.stream.ReaderToWriter
com.bea.xml.stream.XMLWriterBase
com.bea.xml.stream.XMLStreamRecorder
public class XMLStreamRecorder
Writes XML in a non-xml format to create XML tests.
| Field Summary |
|---|
| Fields inherited from class com.bea.xml.stream.XMLWriterBase |
|---|
context, DEFAULTNS |
| Constructor Summary | |
|---|---|
XMLStreamRecorder()
|
|
XMLStreamRecorder(java.io.Writer writer)
|
|
| Method Summary | |
|---|---|
protected void |
closeEndTag()
|
protected void |
closeStartTag()
|
static void |
main(java.lang.String[] args)
|
protected void |
openEndTag()
|
protected void |
openStartTag()
|
void |
write(javax.xml.stream.XMLStreamReader xmlr)
|
void |
writeAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
Writes an attribute to the output stream |
void |
writeCData(java.lang.String data)
Writes a CData section |
protected void |
writeCharactersInternal(char[] characters,
int start,
int length,
boolean isAttributeValue)
|
void |
writeComment(java.lang.String data)
Writes an xml comment with the data enclosed |
void |
writeDefaultNamespace(java.lang.String namespaceURI)
Writes the default namespace to the stream |
void |
writeDTD(java.lang.String dtd)
Write a DTD section. |
void |
writeEntityRef(java.lang.String name)
Writes an entity reference |
protected java.lang.String |
writeName(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName)
|
void |
writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
Writes a namespace to the output stream If the prefix argument to this method is the empty string, "xmlns", or null this method will delegate to writeDefaultNamespace |
void |
writeProcessingInstruction(java.lang.String target,
java.lang.String text)
Writes a processing instruction |
void |
writeStartDocument()
Write the XML Declaration. |
void |
writeStartDocument(java.lang.String version)
Write the XML Declaration. |
void |
writeStartDocument(java.lang.String encoding,
java.lang.String version)
Write the XML Declaration. |
protected void |
writeType(int type)
|
| Methods inherited from class com.bea.xml.stream.ReaderToWriter |
|---|
setStreamWriter, writeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLStreamRecorder()
public XMLStreamRecorder(java.io.Writer writer)
| Method Detail |
|---|
protected java.lang.String writeName(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName)
throws javax.xml.stream.XMLStreamException
writeName in class XMLWriterBasejavax.xml.stream.XMLStreamException
protected void writeType(int type)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void openStartTag()
throws javax.xml.stream.XMLStreamException
openStartTag in class XMLWriterBasejavax.xml.stream.XMLStreamException
protected void closeStartTag()
throws javax.xml.stream.XMLStreamException
closeStartTag in class XMLWriterBasejavax.xml.stream.XMLStreamException
protected void openEndTag()
throws javax.xml.stream.XMLStreamException
openEndTag in class XMLWriterBasejavax.xml.stream.XMLStreamException
protected void closeEndTag()
throws javax.xml.stream.XMLStreamException
closeEndTag in class XMLWriterBasejavax.xml.stream.XMLStreamException
public void writeAttribute(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeAttribute in interface javax.xml.stream.XMLStreamWriterwriteAttribute in class XMLWriterBasenamespaceURI - the uri of the prefix for this attributelocalName - the local name of the attributevalue - the value of the attribute
javax.xml.stream.XMLStreamException - if the namespace URI has not been bound to a prefix and
javax.xml.stream.isPrefixDefaulting has not been set to true
public void writeNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeNamespace in interface javax.xml.stream.XMLStreamWriterwriteNamespace in class XMLWriterBaseprefix - the prefix to bind this namespace tonamespaceURI - the uri to bind the prefix to
javax.xml.stream.XMLStreamException
public void writeDefaultNamespace(java.lang.String namespaceURI)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeDefaultNamespace in interface javax.xml.stream.XMLStreamWriterwriteDefaultNamespace in class XMLWriterBasenamespaceURI - the uri to bind the default namespace to
javax.xml.stream.XMLStreamException
public void writeComment(java.lang.String data)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeComment in interface javax.xml.stream.XMLStreamWriterwriteComment in class XMLWriterBasedata - the data contained in the comment, may be null
javax.xml.stream.XMLStreamException
public void writeProcessingInstruction(java.lang.String target,
java.lang.String text)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeProcessingInstruction in interface javax.xml.stream.XMLStreamWriterwriteProcessingInstruction in class XMLWriterBasetarget - the target of the processing instruction, may not be nulltext - the data contained in the processing instruction, may not be null
javax.xml.stream.XMLStreamException
public void writeDTD(java.lang.String dtd)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeDTD in interface javax.xml.stream.XMLStreamWriterwriteDTD in class XMLWriterBasedtd - the DTD to be written
javax.xml.stream.XMLStreamException
public void writeCData(java.lang.String data)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeCData in interface javax.xml.stream.XMLStreamWriterwriteCData in class XMLWriterBasedata - the data contained in the CData Section, may not be null
javax.xml.stream.XMLStreamException
public void writeEntityRef(java.lang.String name)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeEntityRef in interface javax.xml.stream.XMLStreamWriterwriteEntityRef in class XMLWriterBasename - the name of the entity
javax.xml.stream.XMLStreamException
public void writeStartDocument()
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeStartDocument in interface javax.xml.stream.XMLStreamWriterwriteStartDocument in class XMLWriterBasejavax.xml.stream.XMLStreamException
public void writeStartDocument(java.lang.String version)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeStartDocument in interface javax.xml.stream.XMLStreamWriterwriteStartDocument in class XMLWriterBaseversion - version of the xml document
javax.xml.stream.XMLStreamException
public void writeStartDocument(java.lang.String encoding,
java.lang.String version)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamWriter
writeStartDocument in interface javax.xml.stream.XMLStreamWriterwriteStartDocument in class XMLWriterBaseencoding - encoding of the xml declarationversion - version of the xml document
javax.xml.stream.XMLStreamException
protected void writeCharactersInternal(char[] characters,
int start,
int length,
boolean isAttributeValue)
throws javax.xml.stream.XMLStreamException
writeCharactersInternal in class XMLWriterBasejavax.xml.stream.XMLStreamException
public void write(javax.xml.stream.XMLStreamReader xmlr)
throws javax.xml.stream.XMLStreamException
write in class ReaderToWriterjavax.xml.stream.XMLStreamException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||