FileDocCategorySizeDatePackage
GOMDocumentImpl.javaAPI DocApache Lucene 2.1.03548Wed Feb 14 10:45:58 GMT 2007org.apache.lucene.gdata.gom.core

GOMDocumentImpl

public class GOMDocumentImpl extends Object implements org.apache.lucene.gdata.gom.GOMDocument
author
Simon Willnauer
param

Fields Summary
private static final String
DEFAULT_ENCODING
private static final String
DEFAULT_VERSION
private T
root
private String
version
private String
charEncoding
Constructors Summary
public GOMDocumentImpl()


	 	 
	  
		super();
	
Methods Summary
public java.lang.StringgetCharacterEncoding()

see
org.apache.lucene.gdata.gom.GOMDocument#getCharacterEncoding()

		return this.charEncoding;
	
public TgetRootElement()

see
org.apache.lucene.gdata.gom.GOMDocument#getRootElement()

		return this.root;
	
public java.lang.StringgetVersion()

return
the version
uml.property
name="version"

		return this.version;
	
public voidsetCharacterEncoding(java.lang.String aEncoding)

see
org.apache.lucene.gdata.gom.GOMDocument#setCharacterEncoding(java.lang.String)

		this.charEncoding = aEncoding;

	
public voidsetRootElement(T aRootElement)

see
org.apache.lucene.gdata.gom.GOMDocument#setRootElement(org.apache.lucene.gdata.gom.GOMElement)

		this.root = aRootElement;

	
public voidsetVersion(java.lang.String aVersion)

see
org.apache.lucene.gdata.gom.GOMDocument#setVersion(java.lang.String)

		this.version = aVersion;

	
public voidwriteAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)

see
org.apache.lucene.gdata.gom.GOMDocument#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

		try {
			aStreamWriter.writeStartDocument(
					this.charEncoding == null ? DEFAULT_ENCODING
							: this.charEncoding,
					this.version == null ? DEFAULT_VERSION : this.version);
			if (this.root != null)
				this.root.writeAtomOutput(aStreamWriter);
			aStreamWriter.writeEndDocument();
			aStreamWriter.flush();
		} finally {
			aStreamWriter.close();
		}

	
public voidwriteRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)

see
org.apache.lucene.gdata.gom.GOMDocument#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

		try {
			aStreamWriter.writeStartDocument(
					this.charEncoding == null ? DEFAULT_ENCODING
							: this.charEncoding,
					this.version == null ? DEFAULT_VERSION : this.version);
			if (this.root != null) {
				this.root.writeRssOutput(aStreamWriter);
			}
			aStreamWriter.writeEndDocument();
			aStreamWriter.flush();
		} finally {
			aStreamWriter.close();
		}