|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.gdata.gom.writer.GOMStaxWriter
public class GOMStaxWriter
Constructor Summary | |
---|---|
GOMStaxWriter(OutputStream aOutputStream)
Class constructor |
|
GOMStaxWriter(OutputStream aOutputStream,
String encoding)
|
|
GOMStaxWriter(Writer aWriter)
Class constructor |
Method Summary | |
---|---|
void |
close()
Closes the GOM Writer |
void |
flush()
Flush the GOMWriter |
void |
writeAttribute(GOMAttribute attribute)
writes a attribute with the attribute namespace Uri |
void |
writeContent(String aContent)
|
void |
writeContentUnescaped(String aContent)
|
void |
writeDefaultNamespace(GOMNamespace aNameSpace)
|
void |
writeDefaultNamespace(String aNsUri)
|
void |
writeEndDocument()
Writes a end element tag according to the start element tag |
void |
writeEndElement()
|
void |
writeNamespace(GOMNamespace aNameSpace)
|
void |
writeSimpleXMLElement(javax.xml.namespace.QName aName,
List<GOMAttribute> aList,
String aValue)
Writes a simple element with full namespace |
void |
writeSimpleXMLElement(javax.xml.namespace.QName aName,
String aValue,
GOMAttribute aAttribute)
Writes a simple element with full namespace |
void |
writeSimpleXMLElement(String aName,
List<GOMAttribute> aList,
String aValue)
Writes a simple element with default namespace |
void |
writeSimpleXMLElement(String aName,
String aValue,
GOMAttribute aAttribute)
Writes a simple element with full namespace |
void |
writeStartDocument(String aString,
String aString2)
|
void |
writeStartElement(javax.xml.namespace.QName aName,
List<GOMAttribute> aList)
|
void |
writeStartElement(String aName)
|
void |
writeStartElement(String aName,
GOMAttribute aAttribute)
|
void |
writeStartElement(String aName,
List<GOMAttribute> aList)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GOMStaxWriter(OutputStream aOutputStream, String encoding) throws UnsupportedEncodingException, javax.xml.stream.XMLStreamException, javax.xml.stream.FactoryConfigurationError
aOutputStream
- encoding
-
UnsupportedEncodingException
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError
public GOMStaxWriter(OutputStream aOutputStream) throws javax.xml.stream.XMLStreamException, javax.xml.stream.FactoryConfigurationError
aOutputStream
- -
a output stream to write the xml stream to.
javax.xml.stream.XMLStreamException
- -
if a write exception occurs
javax.xml.stream.FactoryConfigurationError
- -
if XMLOutputFactory throws an exceptionpublic GOMStaxWriter(Writer aWriter) throws javax.xml.stream.XMLStreamException, javax.xml.stream.FactoryConfigurationError
aWriter
- -
a writer to write the xml stream to.
javax.xml.stream.XMLStreamException
- -
if a write exception occurs
javax.xml.stream.FactoryConfigurationError
- -
if XMLOutputFactory throws an exceptionMethod Detail |
---|
public void writeSimpleXMLElement(javax.xml.namespace.QName aName, List<GOMAttribute> aList, String aValue) throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeSimpleXMLElement
in interface GOMOutputWriter
aName
- -
element QNameaList
- -
attribute listaValue
- -
character value
javax.xml.stream.XMLStreamException
- -
if a write exception occursGOMOutputWriter.writeSimpleXMLElement(javax.xml.namespace.QName,
java.util.List, java.lang.String)
public void writeSimpleXMLElement(javax.xml.namespace.QName aName, String aValue, GOMAttribute aAttribute) throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeSimpleXMLElement
in interface GOMOutputWriter
aName
- -
element QNameaValue
- -
character valueaAttribute
- -
attribute
javax.xml.stream.XMLStreamException
- -
if a write exception occursGOMOutputWriter.writeSimpleXMLElement(javax.xml.namespace.QName,
java.lang.String, org.apache.lucene.gdata.gom.GOMAttribute)
public void writeSimpleXMLElement(String aName, String aValue, GOMAttribute aAttribute) throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeSimpleXMLElement
in interface GOMOutputWriter
aName
- -
the local name of the elementaValue
- -
character valueaAttribute
- -
attribute
javax.xml.stream.XMLStreamException
- -
if a write exception occursGOMOutputWriter.writeSimpleXMLElement(java.lang.String,
java.lang.String, org.apache.lucene.gdata.gom.GOMAttribute)
public void writeSimpleXMLElement(String aName, List<GOMAttribute> aList, String aValue) throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeSimpleXMLElement
in interface GOMOutputWriter
aName
- -
elements nameaList
- -
attribute listaValue
- -
character value
javax.xml.stream.XMLStreamException
- -
if a write exception occursGOMOutputWriter.writeSimpleXMLElement(java.lang.String,
java.util.List, java.lang.String)
public void writeAttribute(GOMAttribute attribute) throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeAttribute
in interface GOMOutputWriter
attribute
- -
the attribute
javax.xml.stream.XMLStreamException
- -
if a write exception occursGOMOutputWriter.writeAttribute(org.apache.lucene.gdata.gom.GOMAttribute)
public void writeStartElement(String aName, List<GOMAttribute> aList) throws javax.xml.stream.XMLStreamException
writeStartElement
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeStartElement(java.lang.String,
java.util.List)
public void writeStartElement(String aName, GOMAttribute aAttribute) throws javax.xml.stream.XMLStreamException
writeStartElement
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeStartElement(java.lang.String,
org.apache.lucene.gdata.gom.GOMAttribute)
public void writeStartElement(String aName) throws javax.xml.stream.XMLStreamException
writeStartElement
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeStartElement(java.lang.String)
public void writeStartElement(javax.xml.namespace.QName aName, List<GOMAttribute> aList) throws javax.xml.stream.XMLStreamException
writeStartElement
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeStartElement(javax.xml.namespace.QName,
java.util.List)
public void writeEndElement() throws javax.xml.stream.XMLStreamException
writeEndElement
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeEndElement()
public void writeContent(String aContent) throws javax.xml.stream.XMLStreamException
writeContent
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeContent(java.lang.String)
public void writeContentUnescaped(String aContent) throws javax.xml.stream.XMLStreamException
writeContentUnescaped
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeContentUnescaped(java.lang.String)
public void writeDefaultNamespace(String aNsUri) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
org.apache.lucene.gdata.gom.writer.GOMOutputWriter#writeDefaultNamespace(java.lang.String)
public void writeDefaultNamespace(GOMNamespace aNameSpace) throws javax.xml.stream.XMLStreamException
writeDefaultNamespace
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeDefaultNamespace(org.apache.lucene.gdata.gom.GOMNamespace)
public void writeNamespace(GOMNamespace aNameSpace) throws javax.xml.stream.XMLStreamException
writeNamespace
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeNamespace(org.apache.lucene.gdata.gom.GOMNamespace)
public void writeStartDocument(String aString, String aString2) throws javax.xml.stream.XMLStreamException
writeStartDocument
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.writeStartDocument(java.lang.String,
java.lang.String)
public void writeEndDocument() throws javax.xml.stream.XMLStreamException
GOMOutputWriter
writeEndDocument
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
- -
if no start tag has been written or the element stack points
to a different elementGOMOutputWriter.writeEndDocument()
public void flush() throws javax.xml.stream.XMLStreamException
GOMOutputWriter
flush
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.flush()
public void close() throws javax.xml.stream.XMLStreamException
GOMOutputWriter
close
in interface GOMOutputWriter
javax.xml.stream.XMLStreamException
GOMOutputWriter.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |