|
||||||||||
| 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,
XMLStreamException,
FactoryConfigurationError
aOutputStream - encoding -
UnsupportedEncodingException
XMLStreamException
FactoryConfigurationError
public GOMStaxWriter(OutputStream aOutputStream)
throws XMLStreamException,
FactoryConfigurationError
aOutputStream - -
a output stream to write the xml stream to.
XMLStreamException - -
if a write exception occurs
FactoryConfigurationError - -
if XMLOutputFactory throws an exception
public GOMStaxWriter(Writer aWriter)
throws XMLStreamException,
FactoryConfigurationError
aWriter - -
a writer to write the xml stream to.
XMLStreamException - -
if a write exception occurs
FactoryConfigurationError - -
if XMLOutputFactory throws an exception| Method Detail |
|---|
public void writeSimpleXMLElement(javax.xml.namespace.QName aName,
List<GOMAttribute> aList,
String aValue)
throws XMLStreamException
GOMOutputWriter
writeSimpleXMLElement in interface GOMOutputWriteraName - -
element QNameaList - -
attribute listaValue - -
character value
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 XMLStreamException
GOMOutputWriter
writeSimpleXMLElement in interface GOMOutputWriteraName - -
element QNameaValue - -
character valueaAttribute - -
attribute
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 XMLStreamException
GOMOutputWriter
writeSimpleXMLElement in interface GOMOutputWriteraName - -
the local name of the elementaValue - -
character valueaAttribute - -
attribute
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 XMLStreamException
GOMOutputWriter
writeSimpleXMLElement in interface GOMOutputWriteraName - -
elements nameaList - -
attribute listaValue - -
character value
XMLStreamException - -
if a write exception occursGOMOutputWriter.writeSimpleXMLElement(java.lang.String,
java.util.List, java.lang.String)
public void writeAttribute(GOMAttribute attribute)
throws XMLStreamException
GOMOutputWriter
writeAttribute in interface GOMOutputWriterattribute - -
the attribute
XMLStreamException - -
if a write exception occursGOMOutputWriter.writeAttribute(org.apache.lucene.gdata.gom.GOMAttribute)
public void writeStartElement(String aName,
List<GOMAttribute> aList)
throws XMLStreamException
writeStartElement in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeStartElement(java.lang.String,
java.util.List)
public void writeStartElement(String aName,
GOMAttribute aAttribute)
throws XMLStreamException
writeStartElement in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeStartElement(java.lang.String,
org.apache.lucene.gdata.gom.GOMAttribute)
public void writeStartElement(String aName)
throws XMLStreamException
writeStartElement in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeStartElement(java.lang.String)
public void writeStartElement(javax.xml.namespace.QName aName,
List<GOMAttribute> aList)
throws XMLStreamException
writeStartElement in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeStartElement(javax.xml.namespace.QName,
java.util.List)
public void writeEndElement()
throws XMLStreamException
writeEndElement in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeEndElement()
public void writeContent(String aContent)
throws XMLStreamException
writeContent in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeContent(java.lang.String)
public void writeContentUnescaped(String aContent)
throws XMLStreamException
writeContentUnescaped in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeContentUnescaped(java.lang.String)
public void writeDefaultNamespace(String aNsUri)
throws XMLStreamException
XMLStreamExceptionorg.apache.lucene.gdata.gom.writer.GOMOutputWriter#writeDefaultNamespace(java.lang.String)
public void writeDefaultNamespace(GOMNamespace aNameSpace)
throws XMLStreamException
writeDefaultNamespace in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeDefaultNamespace(org.apache.lucene.gdata.gom.GOMNamespace)
public void writeNamespace(GOMNamespace aNameSpace)
throws XMLStreamException
writeNamespace in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeNamespace(org.apache.lucene.gdata.gom.GOMNamespace)
public void writeStartDocument(String aString,
String aString2)
throws XMLStreamException
writeStartDocument in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.writeStartDocument(java.lang.String,
java.lang.String)
public void writeEndDocument()
throws XMLStreamException
GOMOutputWriter
writeEndDocument in interface GOMOutputWriterXMLStreamException - -
if no start tag has been written or the element stack points
to a different elementGOMOutputWriter.writeEndDocument()
public void flush()
throws XMLStreamException
GOMOutputWriter
flush in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.flush()
public void close()
throws XMLStreamException
GOMOutputWriter
close in interface GOMOutputWriterXMLStreamExceptionGOMOutputWriter.close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||