org.apache.abdera.util
Class AbstractStreamWriter

java.lang.Object
  extended by org.apache.abdera.util.AbstractStreamWriter
All Implemented Interfaces:
Closeable, Appendable, NamedItem, StreamWriter
Direct Known Subclasses:
StaxStreamWriter, StreamBuilder

public abstract class AbstractStreamWriter
extends Object
implements StreamWriter


Field Summary
protected  Abdera abdera
           
protected  boolean autoclose
           
protected  boolean autoflush
           
protected  boolean autoindent
           
protected  String name
           
 
Constructor Summary
protected AbstractStreamWriter(Abdera abdera, String name)
           
 
Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence csq)
           
 Appendable append(CharSequence csq, int start, int end)
           
 StreamWriter endAuthor()
          End the atom:author element
 StreamWriter endCategories()
          End the app:categories element
 StreamWriter endCategory()
          End the atom:category
 StreamWriter endCollection()
          End an app:collection element
 StreamWriter endContent()
          End the atom:content element
 StreamWriter endContributor()
          End an atom:contributor element
 StreamWriter endControl()
          End the app:control element
 StreamWriter endDocument()
          End the document
 StreamWriter endEntry()
          End the atom:entry element
 StreamWriter endFeed()
          End the atom:feed element
 StreamWriter endGenerator()
          End the atom:generator element
 StreamWriter endLink()
          End the atom:link
 StreamWriter endPerson()
          End the person element
 StreamWriter endService()
          End an app:service element
 StreamWriter endSource()
          End the atom:source
 StreamWriter endText()
           
 StreamWriter endWorkspace()
          End an app:workspace element
 String getName()
           
 StreamWriter setAutoclose(boolean auto)
          True if the StreamWriter should autoclose the buffer after calling endDocument
 StreamWriter setAutoflush(boolean auto)
          True if the StreamWriter should autoflush the buffer
 StreamWriter setAutoIndent(boolean indent)
          True to enable automatic indenting
 StreamWriter setChannel(WritableByteChannel channel)
          Set the target WritableByteChannel
 StreamWriter setChannel(WritableByteChannel channel, String charset)
          Set the target WritableByteChannel
 StreamWriter startAuthor()
          Start an atom:author element
 StreamWriter startCategories()
          Start an app:categories element
 StreamWriter startCategories(boolean fixed)
          Start an app:categories element
 StreamWriter startCategories(boolean fixed, String scheme)
          Start an app:categories element
 StreamWriter startCategory(String term)
          Start an atom:category element
 StreamWriter startCategory(String term, String scheme)
          Start an atom:category element
 StreamWriter startCategory(String term, String scheme, String label)
          Start an atom:category element
 StreamWriter startCollection(String href)
          Start an app:collection element
 StreamWriter startContent(Content.Type type)
          Start an atom:content element
 StreamWriter startContent(Content.Type type, String src)
          Start an atom:content element
 StreamWriter startContent(String type)
          Start an atom:content element
 StreamWriter startContent(String type, String src)
          Start an atom:content element
 StreamWriter startContributor()
          Start an atom:contributor element
 StreamWriter startControl()
          Start the app:control element
 StreamWriter startDocument()
          Start the document
 StreamWriter startElement(QName qname)
          Start an element
 StreamWriter startElement(String name)
          Start an element
 StreamWriter startElement(String name, String namespace)
          Start an element
 StreamWriter startEntry()
          Start an atom:entry element
 StreamWriter startFeed()
          Start an atom:feed element
 StreamWriter startGenerator(String version, String uri)
          Start an atom:generator element
 StreamWriter startLink(String iri)
          Start an atom:link element
 StreamWriter startLink(String iri, String rel)
          Start an atom:link element
 StreamWriter startLink(String iri, String rel, String type)
          Start an atom:link element
 StreamWriter startLink(String iri, String rel, String type, String title, String hreflang, long length)
          Start an atom:link element
 StreamWriter startPerson(QName qname)
          Start a person element
 StreamWriter startPerson(String name)
          Start a person element
 StreamWriter startPerson(String name, String namespace)
          Start a person element
 StreamWriter startPerson(String name, String namespace, String prefix)
          Start a person element
 StreamWriter startService()
          Start an app:service element
 StreamWriter startSource()
          Start an atom:source element
 StreamWriter startText(QName qname, Text.Type type)
          Start a Text element
 StreamWriter startText(String name, String namespace, String prefix, Text.Type type)
          Start a Text element
 StreamWriter startText(String name, String namespace, Text.Type type)
          Start a Text element
 StreamWriter startText(String name, Text.Type type)
          Start a Text element
 StreamWriter startWorkspace()
          Start an app:workspace element
 StreamWriter writeAccepts(String... accepts)
          Writes app:accept elements
 StreamWriter writeAcceptsEntry()
          Writes an app:accept element indicating that entries are accepted
 StreamWriter writeAcceptsNothing()
          Writes an app:accept element indicating that nothing is accepted
 StreamWriter writeAttribute(QName qname, Date value)
          Write an attribute
 StreamWriter writeAttribute(QName qname, double value)
          Write an attribute
 StreamWriter writeAttribute(QName qname, int value)
          Write an attribute
 StreamWriter writeAttribute(QName qname, long value)
          Write an attribute
 StreamWriter writeAttribute(QName qname, String value)
          Write an attribute
 StreamWriter writeAttribute(String name, Date value)
          Write an attribute
 StreamWriter writeAttribute(String name, double value)
          Write an attribute
 StreamWriter writeAttribute(String name, int value)
          Write an attribute
 StreamWriter writeAttribute(String name, long value)
          Write an attribute
 StreamWriter writeAttribute(String name, String value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, Date value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, double value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, int value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, long value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, String value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, String prefix, Date value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, String prefix, double value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, String prefix, int value)
          Write an attribute
 StreamWriter writeAttribute(String name, String namespace, String prefix, long value)
          Write an attribute
 StreamWriter writeAuthor(String name)
          Write an atom:author element
 StreamWriter writeAuthor(String name, String email, String uri)
          Write an atom:author element
 StreamWriter writeBase(IRI iri)
          Write the xml:base attribute
 StreamWriter writeBase(String iri)
          Write the xml:base attribute
 StreamWriter writeCategory(String term)
          Write an atom:category element
 StreamWriter writeCategory(String term, String scheme)
          Write an atom:category element
 StreamWriter writeCategory(String term, String scheme, String label)
          Write an atom:category element
 StreamWriter writeContent(Content.Type type, javax.activation.DataHandler value)
          Write an atom:content element
 StreamWriter writeContent(Content.Type type, InputStream value)
          Write an atom:content element
 StreamWriter writeContent(Content.Type type, String value)
          Write an atom:content element
 StreamWriter writeContent(String type, String value)
          Write an atom:content element
 StreamWriter writeContributor(String name)
          Write an atom:contributor element
 StreamWriter writeContributor(String name, String email, String uri)
          Write an atom:contributor element
 StreamWriter writeDate(QName qname, Date date)
          Write a Date element
 StreamWriter writeDate(QName qname, String date)
          Write a Date element
 StreamWriter writeDate(String name, Date date)
          Write a Date element
 StreamWriter writeDate(String name, String date)
          Write a Date element
 StreamWriter writeDate(String name, String namespace, Date date)
          Write a Date element
 StreamWriter writeDate(String name, String namespace, String date)
          Write a Date element
 StreamWriter writeDate(String name, String namespace, String prefix, Date date)
          Write a Date element
 StreamWriter writeDate(String name, String namespace, String prefix, String date)
          Write a Date element
 StreamWriter writeDraft(boolean draft)
          Write an app:draft element
 StreamWriter writeEdited(Date date)
          Write an atom:edited element
 StreamWriter writeEdited(String date)
          Write an atom:edited element
 StreamWriter writeElementText(javax.activation.DataHandler value)
          Write element text
 StreamWriter writeElementText(Date value)
          Write element text
 StreamWriter writeElementText(double value)
          Write element text
 StreamWriter writeElementText(InputStream value)
          Write element text
 StreamWriter writeElementText(int value)
          Write element text
 StreamWriter writeElementText(long value)
          Write element text
 StreamWriter writeElementText(String format, Object... args)
          Write element text using Formatter
 StreamWriter writeGenerator(String version, String uri, String value)
          Write an atom:generator element
 StreamWriter writeIcon(IRI iri)
          Write an atom:icon element
 StreamWriter writeIcon(String iri)
          Write an atom:icon element
 StreamWriter writeId(IRI iri)
          Write an atom:id element
 StreamWriter writeId(String iri)
          Write an atom:id element
 StreamWriter writeIRIElement(QName qname, IRI iri)
          Write an IRI element
 StreamWriter writeIRIElement(QName qname, String iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, IRI iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, String iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, String namespace, IRI iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, String namespace, String iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, String namespace, String prefix, IRI iri)
          Write an IRI element
 StreamWriter writeIRIElement(String name, String namespace, String prefix, String iri)
          Write an IRI element
 StreamWriter writeLanguage(Lang lang)
          Write the xml:lang attribute
 StreamWriter writeLanguage(Locale locale)
          Write the xml:lang attribute
 StreamWriter writeLanguage(String lang)
          Write the xml:lang attribute
 StreamWriter writeLink(String iri)
          Write an atom:link element
 StreamWriter writeLink(String iri, String rel)
          Write an atom:link element
 StreamWriter writeLink(String iri, String rel, String type)
          Write an atom:link element
 StreamWriter writeLink(String iri, String rel, String type, String title, String hreflang, long length)
          Write an atom:link element
 StreamWriter writeLogo(IRI iri)
          Write an atom:logo element
 StreamWriter writeLogo(String iri)
          Write an atom:logo element
 StreamWriter writePerson(QName qname, String name, String email, String uri)
          Write a person element
 StreamWriter writePerson(String localname, String name, String email, String uri)
          Write a person element
 StreamWriter writePerson(String localname, String namespace, String name, String email, String uri)
          Write a person element
 StreamWriter writePerson(String localname, String namespace, String prefix, String name, String email, String uri)
          Write a person element
 StreamWriter writePersonEmail(String email)
          Write a person email
 StreamWriter writePersonName(String name)
          Write a person name
 StreamWriter writePersonUri(String uri)
          Write a person uri
 StreamWriter writePublished(Date date)
          Write an atom:published element
 StreamWriter writePublished(String date)
          Write an atom:published element
 StreamWriter writeRights(String value)
          Write an atom:rights element
 StreamWriter writeRights(Text.Type type, String value)
          Write an atom:rights element
 StreamWriter writeSubtitle(String value)
          Write an atom:subtitle element
 StreamWriter writeSubtitle(Text.Type type, String value)
          Write an atom:subtitle element
 StreamWriter writeSummary(String value)
          Write an atom:summary element
 StreamWriter writeSummary(Text.Type type, String value)
          Write an atom:summary element
 StreamWriter writeText(QName qname, Text.Type type, String value)
          Write a Text element
 StreamWriter writeText(String name, String namespace, String prefix, Text.Type type, String value)
          Write a Text element
 StreamWriter writeText(String name, String namespace, Text.Type type, String value)
          Write a Text element
 StreamWriter writeText(String name, Text.Type type, String value)
          Write a Text element
 StreamWriter writeTitle(String value)
          Write an atom:title element
 StreamWriter writeTitle(Text.Type type, String value)
          Write an atom:title element
 StreamWriter writeUpdated(Date date)
          Write an atom:updated element
 StreamWriter writeUpdated(String date)
          Write an atom:updated element
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.writer.StreamWriter
endElement, flush, indent, setOutputStream, setOutputStream, setPrefix, setWriter, startDocument, startDocument, startElement, writeAttribute, writeComment, writeElementText, writeId, writeNamespace, writePI, writePI
 
Methods inherited from interface java.io.Closeable
close
 

Field Detail

abdera

protected final Abdera abdera

name

protected final String name

autoflush

protected boolean autoflush

autoclose

protected boolean autoclose

autoindent

protected boolean autoindent
Constructor Detail

AbstractStreamWriter

protected AbstractStreamWriter(Abdera abdera,
                               String name)
Method Detail

setAutoflush

public StreamWriter setAutoflush(boolean auto)
Description copied from interface: StreamWriter
True if the StreamWriter should autoflush the buffer

Specified by:
setAutoflush in interface StreamWriter

setAutoclose

public StreamWriter setAutoclose(boolean auto)
Description copied from interface: StreamWriter
True if the StreamWriter should autoclose the buffer after calling endDocument

Specified by:
setAutoclose in interface StreamWriter

setChannel

public StreamWriter setChannel(WritableByteChannel channel)
Description copied from interface: StreamWriter
Set the target WritableByteChannel

Specified by:
setChannel in interface StreamWriter

setChannel

public StreamWriter setChannel(WritableByteChannel channel,
                               String charset)
Description copied from interface: StreamWriter
Set the target WritableByteChannel

Specified by:
setChannel in interface StreamWriter

getName

public String getName()
Specified by:
getName in interface NamedItem

startDocument

public StreamWriter startDocument()
Description copied from interface: StreamWriter
Start the document

Specified by:
startDocument in interface StreamWriter

endDocument

public StreamWriter endDocument()
Description copied from interface: StreamWriter
End the document

Specified by:
endDocument in interface StreamWriter

startFeed

public StreamWriter startFeed()
Description copied from interface: StreamWriter
Start an atom:feed element

Specified by:
startFeed in interface StreamWriter

endFeed

public StreamWriter endFeed()
Description copied from interface: StreamWriter
End the atom:feed element

Specified by:
endFeed in interface StreamWriter

startEntry

public StreamWriter startEntry()
Description copied from interface: StreamWriter
Start an atom:entry element

Specified by:
startEntry in interface StreamWriter

endEntry

public StreamWriter endEntry()
Description copied from interface: StreamWriter
End the atom:entry element

Specified by:
endEntry in interface StreamWriter

endCategory

public StreamWriter endCategory()
Description copied from interface: StreamWriter
End the atom:category

Specified by:
endCategory in interface StreamWriter

endContent

public StreamWriter endContent()
Description copied from interface: StreamWriter
End the atom:content element

Specified by:
endContent in interface StreamWriter

endLink

public StreamWriter endLink()
Description copied from interface: StreamWriter
End the atom:link

Specified by:
endLink in interface StreamWriter

endPerson

public StreamWriter endPerson()
Description copied from interface: StreamWriter
End the person element

Specified by:
endPerson in interface StreamWriter

endSource

public StreamWriter endSource()
Description copied from interface: StreamWriter
End the atom:source

Specified by:
endSource in interface StreamWriter

endText

public StreamWriter endText()

startLink

public StreamWriter startLink(String iri,
                              String rel,
                              String type,
                              String title,
                              String hreflang,
                              long length)
Description copied from interface: StreamWriter
Start an atom:link element

Specified by:
startLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value
title - The title value
hreflang - The hreflang value
length - The link length

startPerson

public StreamWriter startPerson(QName qname)
Description copied from interface: StreamWriter
Start a person element

Specified by:
startPerson in interface StreamWriter
Parameters:
qname - The element qname

startSource

public StreamWriter startSource()
Description copied from interface: StreamWriter
Start an atom:source element

Specified by:
startSource in interface StreamWriter

startText

public StreamWriter startText(QName qname,
                              Text.Type type)
Description copied from interface: StreamWriter
Start a Text element

Specified by:
startText in interface StreamWriter
Parameters:
qname - The element qname
type - The text type

writeDate

public StreamWriter writeDate(QName qname,
                              String date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
qname - The element qname
date - The date value

writeIRIElement

public StreamWriter writeIRIElement(QName qname,
                                    String iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
iri - The value

writePersonEmail

public StreamWriter writePersonEmail(String email)
Description copied from interface: StreamWriter
Write a person email

Specified by:
writePersonEmail in interface StreamWriter
Parameters:
email - The person email

writePersonName

public StreamWriter writePersonName(String name)
Description copied from interface: StreamWriter
Write a person name

Specified by:
writePersonName in interface StreamWriter
Parameters:
name - The person name

writePersonUri

public StreamWriter writePersonUri(String uri)
Description copied from interface: StreamWriter
Write a person uri

Specified by:
writePersonUri in interface StreamWriter
Parameters:
uri - The person uri

startContent

public StreamWriter startContent(Content.Type type,
                                 String src)
Description copied from interface: StreamWriter
Start an atom:content element

Specified by:
startContent in interface StreamWriter
Parameters:
type - The text type
src - The src value

startContent

public StreamWriter startContent(String type,
                                 String src)
Description copied from interface: StreamWriter
Start an atom:content element

Specified by:
startContent in interface StreamWriter
Parameters:
type - The text type
src - The src value

startContent

public StreamWriter startContent(Content.Type type)
Description copied from interface: StreamWriter
Start an atom:content element

Specified by:
startContent in interface StreamWriter
Parameters:
type - The text type

startContent

public StreamWriter startContent(String type)
Description copied from interface: StreamWriter
Start an atom:content element

Specified by:
startContent in interface StreamWriter
Parameters:
type - The text type

startLink

public StreamWriter startLink(String iri)
Description copied from interface: StreamWriter
Start an atom:link element

Specified by:
startLink in interface StreamWriter
Parameters:
iri - The href value

startLink

public StreamWriter startLink(String iri,
                              String rel)
Description copied from interface: StreamWriter
Start an atom:link element

Specified by:
startLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value

startLink

public StreamWriter startLink(String iri,
                              String rel,
                              String type)
Description copied from interface: StreamWriter
Start an atom:link element

Specified by:
startLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value

writeCategory

public StreamWriter writeCategory(String term)
Description copied from interface: StreamWriter
Write an atom:category element

Specified by:
writeCategory in interface StreamWriter
Parameters:
term - The term value

writeCategory

public StreamWriter writeCategory(String term,
                                  String scheme)
Description copied from interface: StreamWriter
Write an atom:category element

Specified by:
writeCategory in interface StreamWriter
Parameters:
term - The term value
scheme - The term value

writeCategory

public StreamWriter writeCategory(String term,
                                  String scheme,
                                  String label)
Description copied from interface: StreamWriter
Write an atom:category element

Specified by:
writeCategory in interface StreamWriter
Parameters:
term - The term value
scheme - The term value
label - The term value

writeContent

public StreamWriter writeContent(Content.Type type,
                                 String value)
Description copied from interface: StreamWriter
Write an atom:content element

Specified by:
writeContent in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeContent

public StreamWriter writeContent(Content.Type type,
                                 InputStream value)
                          throws IOException
Description copied from interface: StreamWriter
Write an atom:content element

Specified by:
writeContent in interface StreamWriter
Parameters:
type - The text type
value - The text value
Throws:
IOException

writeContent

public StreamWriter writeContent(Content.Type type,
                                 javax.activation.DataHandler value)
                          throws IOException
Description copied from interface: StreamWriter
Write an atom:content element

Specified by:
writeContent in interface StreamWriter
Parameters:
type - The text type
value - The text value
Throws:
IOException

writeContent

public StreamWriter writeContent(String type,
                                 String value)
Description copied from interface: StreamWriter
Write an atom:content element

Specified by:
writeContent in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeEdited

public StreamWriter writeEdited(Date date)
Description copied from interface: StreamWriter
Write an atom:edited element

Specified by:
writeEdited in interface StreamWriter
Parameters:
date - The date value

writeId

public StreamWriter writeId(String iri)
Description copied from interface: StreamWriter
Write an atom:id element

Specified by:
writeId in interface StreamWriter
Parameters:
iri - The value

writeIcon

public StreamWriter writeIcon(String iri)
Description copied from interface: StreamWriter
Write an atom:icon element

Specified by:
writeIcon in interface StreamWriter
Parameters:
iri - The value

writeLogo

public StreamWriter writeLogo(String iri)
Description copied from interface: StreamWriter
Write an atom:logo element

Specified by:
writeLogo in interface StreamWriter
Parameters:
iri - The value

writeLink

public StreamWriter writeLink(String iri)
Description copied from interface: StreamWriter
Write an atom:link element

Specified by:
writeLink in interface StreamWriter
Parameters:
iri - The href value

writeLink

public StreamWriter writeLink(String iri,
                              String rel)
Description copied from interface: StreamWriter
Write an atom:link element

Specified by:
writeLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value

writeLink

public StreamWriter writeLink(String iri,
                              String rel,
                              String type)
Description copied from interface: StreamWriter
Write an atom:link element

Specified by:
writeLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value

writeLink

public StreamWriter writeLink(String iri,
                              String rel,
                              String type,
                              String title,
                              String hreflang,
                              long length)
Description copied from interface: StreamWriter
Write an atom:link element

Specified by:
writeLink in interface StreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value
title - The title value
hreflang - The hreflang value
length - The link length

writePerson

public StreamWriter writePerson(QName qname,
                                String name,
                                String email,
                                String uri)
Description copied from interface: StreamWriter
Write a person element

Specified by:
writePerson in interface StreamWriter
Parameters:
qname - the element qname
name - The person name
email - The person email
uri - The person uri

writePublished

public StreamWriter writePublished(Date date)
Description copied from interface: StreamWriter
Write an atom:published element

Specified by:
writePublished in interface StreamWriter
Parameters:
date - The date value

writeText

public StreamWriter writeText(QName qname,
                              Text.Type type,
                              String value)
Description copied from interface: StreamWriter
Write a Text element

Specified by:
writeText in interface StreamWriter
Parameters:
qname - The element qname
type - The text type
value - The text value

writeUpdated

public StreamWriter writeUpdated(Date date)
Description copied from interface: StreamWriter
Write an atom:updated element

Specified by:
writeUpdated in interface StreamWriter
Parameters:
date - The date value

writeUpdated

public StreamWriter writeUpdated(String date)
Description copied from interface: StreamWriter
Write an atom:updated element

Specified by:
writeUpdated in interface StreamWriter
Parameters:
date - The date value

writePublished

public StreamWriter writePublished(String date)
Description copied from interface: StreamWriter
Write an atom:published element

Specified by:
writePublished in interface StreamWriter
Parameters:
date - The date value

writeEdited

public StreamWriter writeEdited(String date)
Description copied from interface: StreamWriter
Write an atom:edited element

Specified by:
writeEdited in interface StreamWriter
Parameters:
date - The date value

writeDate

public StreamWriter writeDate(QName qname,
                              Date date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
qname - The element qname
date - The date value

writeId

public StreamWriter writeId(IRI iri)
Description copied from interface: StreamWriter
Write an atom:id element

Specified by:
writeId in interface StreamWriter
Parameters:
iri - The value

writeIcon

public StreamWriter writeIcon(IRI iri)
Description copied from interface: StreamWriter
Write an atom:icon element

Specified by:
writeIcon in interface StreamWriter
Parameters:
iri - The value

writeLogo

public StreamWriter writeLogo(IRI iri)
Description copied from interface: StreamWriter
Write an atom:logo element

Specified by:
writeLogo in interface StreamWriter
Parameters:
iri - The value

writeIRIElement

public StreamWriter writeIRIElement(QName qname,
                                    IRI iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
iri - The value

writeElementText

public StreamWriter writeElementText(InputStream value)
                              throws IOException
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value
Throws:
IOException

writeElementText

public StreamWriter writeElementText(javax.activation.DataHandler value)
                              throws IOException
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value
Throws:
IOException

writeTitle

public StreamWriter writeTitle(String value)
Description copied from interface: StreamWriter
Write an atom:title element

Specified by:
writeTitle in interface StreamWriter
Parameters:
value - The text value

writeTitle

public StreamWriter writeTitle(Text.Type type,
                               String value)
Description copied from interface: StreamWriter
Write an atom:title element

Specified by:
writeTitle in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeSubtitle

public StreamWriter writeSubtitle(String value)
Description copied from interface: StreamWriter
Write an atom:subtitle element

Specified by:
writeSubtitle in interface StreamWriter
Parameters:
value - The text value

writeSubtitle

public StreamWriter writeSubtitle(Text.Type type,
                                  String value)
Description copied from interface: StreamWriter
Write an atom:subtitle element

Specified by:
writeSubtitle in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeSummary

public StreamWriter writeSummary(String value)
Description copied from interface: StreamWriter
Write an atom:summary element

Specified by:
writeSummary in interface StreamWriter
Parameters:
value - The text value

writeSummary

public StreamWriter writeSummary(Text.Type type,
                                 String value)
Description copied from interface: StreamWriter
Write an atom:summary element

Specified by:
writeSummary in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeRights

public StreamWriter writeRights(String value)
Description copied from interface: StreamWriter
Write an atom:rights element

Specified by:
writeRights in interface StreamWriter
Parameters:
value - The text value

writeRights

public StreamWriter writeRights(Text.Type type,
                                String value)
Description copied from interface: StreamWriter
Write an atom:rights element

Specified by:
writeRights in interface StreamWriter
Parameters:
type - The text type
value - The text value

writeAuthor

public StreamWriter writeAuthor(String name,
                                String email,
                                String uri)
Description copied from interface: StreamWriter
Write an atom:author element

Specified by:
writeAuthor in interface StreamWriter
Parameters:
name - The person name
email - The person email
uri - The person uri

writeAuthor

public StreamWriter writeAuthor(String name)
Description copied from interface: StreamWriter
Write an atom:author element

Specified by:
writeAuthor in interface StreamWriter
Parameters:
name - The person name

startAuthor

public StreamWriter startAuthor()
Description copied from interface: StreamWriter
Start an atom:author element

Specified by:
startAuthor in interface StreamWriter

endAuthor

public StreamWriter endAuthor()
Description copied from interface: StreamWriter
End the atom:author element

Specified by:
endAuthor in interface StreamWriter

writeContributor

public StreamWriter writeContributor(String name,
                                     String email,
                                     String uri)
Description copied from interface: StreamWriter
Write an atom:contributor element

Specified by:
writeContributor in interface StreamWriter
Parameters:
name - The person name
email - The person email
uri - The person uri

writeContributor

public StreamWriter writeContributor(String name)
Description copied from interface: StreamWriter
Write an atom:contributor element

Specified by:
writeContributor in interface StreamWriter
Parameters:
name - The person name

startContributor

public StreamWriter startContributor()
Description copied from interface: StreamWriter
Start an atom:contributor element

Specified by:
startContributor in interface StreamWriter

endContributor

public StreamWriter endContributor()
Description copied from interface: StreamWriter
End an atom:contributor element

Specified by:
endContributor in interface StreamWriter

writeGenerator

public StreamWriter writeGenerator(String version,
                                   String uri,
                                   String value)
Description copied from interface: StreamWriter
Write an atom:generator element

Specified by:
writeGenerator in interface StreamWriter
Parameters:
version - The version value
uri - The uri value
value - The text value

startGenerator

public StreamWriter startGenerator(String version,
                                   String uri)
Description copied from interface: StreamWriter
Start an atom:generator element

Specified by:
startGenerator in interface StreamWriter
Parameters:
version - The version value
uri - The uri value

endGenerator

public StreamWriter endGenerator()
Description copied from interface: StreamWriter
End the atom:generator element

Specified by:
endGenerator in interface StreamWriter

startCategory

public StreamWriter startCategory(String term)
Description copied from interface: StreamWriter
Start an atom:category element

Specified by:
startCategory in interface StreamWriter
Parameters:
term - The term value

startCategory

public StreamWriter startCategory(String term,
                                  String scheme)
Description copied from interface: StreamWriter
Start an atom:category element

Specified by:
startCategory in interface StreamWriter
Parameters:
term - The term value
scheme - The term value

startCategory

public StreamWriter startCategory(String term,
                                  String scheme,
                                  String label)
Description copied from interface: StreamWriter
Start an atom:category element

Specified by:
startCategory in interface StreamWriter
Parameters:
term - The term value
scheme - The term value
label - The term value

startService

public StreamWriter startService()
Description copied from interface: StreamWriter
Start an app:service element

Specified by:
startService in interface StreamWriter

endService

public StreamWriter endService()
Description copied from interface: StreamWriter
End an app:service element

Specified by:
endService in interface StreamWriter

startWorkspace

public StreamWriter startWorkspace()
Description copied from interface: StreamWriter
Start an app:workspace element

Specified by:
startWorkspace in interface StreamWriter

endWorkspace

public StreamWriter endWorkspace()
Description copied from interface: StreamWriter
End an app:workspace element

Specified by:
endWorkspace in interface StreamWriter

startCollection

public StreamWriter startCollection(String href)
Description copied from interface: StreamWriter
Start an app:collection element

Specified by:
startCollection in interface StreamWriter
Parameters:
href - The href value

endCollection

public StreamWriter endCollection()
Description copied from interface: StreamWriter
End an app:collection element

Specified by:
endCollection in interface StreamWriter

writeAccepts

public StreamWriter writeAccepts(String... accepts)
Description copied from interface: StreamWriter
Writes app:accept elements

Specified by:
writeAccepts in interface StreamWriter
Parameters:
accepts - accept element values

writeAcceptsEntry

public StreamWriter writeAcceptsEntry()
Description copied from interface: StreamWriter
Writes an app:accept element indicating that entries are accepted

Specified by:
writeAcceptsEntry in interface StreamWriter

writeAcceptsNothing

public StreamWriter writeAcceptsNothing()
Description copied from interface: StreamWriter
Writes an app:accept element indicating that nothing is accepted

Specified by:
writeAcceptsNothing in interface StreamWriter

startCategories

public StreamWriter startCategories()
Description copied from interface: StreamWriter
Start an app:categories element

Specified by:
startCategories in interface StreamWriter

startCategories

public StreamWriter startCategories(boolean fixed)
Description copied from interface: StreamWriter
Start an app:categories element

Specified by:
startCategories in interface StreamWriter
Parameters:
fixed - True if the app:categories element is fixed

startCategories

public StreamWriter startCategories(boolean fixed,
                                    String scheme)
Description copied from interface: StreamWriter
Start an app:categories element

Specified by:
startCategories in interface StreamWriter
Parameters:
fixed - True if the app:categories element is fixed
scheme - The scheme value

endCategories

public StreamWriter endCategories()
Description copied from interface: StreamWriter
End the app:categories element

Specified by:
endCategories in interface StreamWriter

startControl

public StreamWriter startControl()
Description copied from interface: StreamWriter
Start the app:control element

Specified by:
startControl in interface StreamWriter

endControl

public StreamWriter endControl()
Description copied from interface: StreamWriter
End the app:control element

Specified by:
endControl in interface StreamWriter

writeDraft

public StreamWriter writeDraft(boolean draft)
Description copied from interface: StreamWriter
Write an app:draft element

Specified by:
writeDraft in interface StreamWriter
Parameters:
draft - true if app:draft=yes

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   String value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(QName qname,
                                   String value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

startElement

public StreamWriter startElement(QName qname)
Description copied from interface: StreamWriter
Start an element

Specified by:
startElement in interface StreamWriter
Parameters:
qname - Element qname

startElement

public StreamWriter startElement(String name)
Description copied from interface: StreamWriter
Start an element

Specified by:
startElement in interface StreamWriter

startElement

public StreamWriter startElement(String name,
                                 String namespace)
Description copied from interface: StreamWriter
Start an element

Specified by:
startElement in interface StreamWriter

setAutoIndent

public StreamWriter setAutoIndent(boolean indent)
Description copied from interface: StreamWriter
True to enable automatic indenting

Specified by:
setAutoIndent in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(QName qname,
                                   Date value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   Date value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   Date value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   String prefix,
                                   Date value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(QName qname,
                                   int value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   int value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   int value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   String prefix,
                                   int value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(QName qname,
                                   long value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   long value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   long value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   String prefix,
                                   long value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(QName qname,
                                   double value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   double value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   double value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeAttribute

public StreamWriter writeAttribute(String name,
                                   String namespace,
                                   String prefix,
                                   double value)
Description copied from interface: StreamWriter
Write an attribute

Specified by:
writeAttribute in interface StreamWriter

writeElementText

public StreamWriter writeElementText(Date value)
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value

writeElementText

public StreamWriter writeElementText(int value)
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value

writeElementText

public StreamWriter writeElementText(long value)
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value

writeElementText

public StreamWriter writeElementText(double value)
Description copied from interface: StreamWriter
Write element text

Specified by:
writeElementText in interface StreamWriter
Parameters:
value - The text value

writeBase

public StreamWriter writeBase(String iri)
Description copied from interface: StreamWriter
Write the xml:base attribute

Specified by:
writeBase in interface StreamWriter

writeBase

public StreamWriter writeBase(IRI iri)
Description copied from interface: StreamWriter
Write the xml:base attribute

Specified by:
writeBase in interface StreamWriter

writeLanguage

public StreamWriter writeLanguage(String lang)
Description copied from interface: StreamWriter
Write the xml:lang attribute

Specified by:
writeLanguage in interface StreamWriter

writeLanguage

public StreamWriter writeLanguage(Lang lang)
Description copied from interface: StreamWriter
Write the xml:lang attribute

Specified by:
writeLanguage in interface StreamWriter

writeLanguage

public StreamWriter writeLanguage(Locale locale)
Description copied from interface: StreamWriter
Write the xml:lang attribute

Specified by:
writeLanguage in interface StreamWriter

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    IRI iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
iri - the IRI to write

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    String namespace,
                                    IRI iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
iri - the IRI to write

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    String namespace,
                                    String prefix,
                                    IRI iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - the element prefix
iri - the IRI to write

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    String namespace,
                                    String prefix,
                                    String iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - the element prefix
iri - the IRI to write

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    String namespace,
                                    String iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
iri - the IRI to write

writeIRIElement

public StreamWriter writeIRIElement(String name,
                                    String iri)
Description copied from interface: StreamWriter
Write an IRI element

Specified by:
writeIRIElement in interface StreamWriter
Parameters:
name - The element localname
iri - the IRI to write

writeDate

public StreamWriter writeDate(String name,
                              Date date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
date - The date value

writeDate

public StreamWriter writeDate(String name,
                              String namespace,
                              Date date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
date - The date value

writeDate

public StreamWriter writeDate(String name,
                              String namespace,
                              String prefix,
                              Date date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - The element prefix
date - The date value

writeDate

public StreamWriter writeDate(String name,
                              String date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
date - The date value

writeDate

public StreamWriter writeDate(String name,
                              String namespace,
                              String date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
date - The date value

writeDate

public StreamWriter writeDate(String name,
                              String namespace,
                              String prefix,
                              String date)
Description copied from interface: StreamWriter
Write a Date element

Specified by:
writeDate in interface StreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - The element prefix
date - The date value

startText

public StreamWriter startText(String name,
                              String namespace,
                              String prefix,
                              Text.Type type)
Description copied from interface: StreamWriter
Start a Text element

Specified by:
startText in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix
type - The text type

startText

public StreamWriter startText(String name,
                              String namespace,
                              Text.Type type)
Description copied from interface: StreamWriter
Start a Text element

Specified by:
startText in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace
type - The text type

startText

public StreamWriter startText(String name,
                              Text.Type type)
Description copied from interface: StreamWriter
Start a Text element

Specified by:
startText in interface StreamWriter
Parameters:
name - The element name
type - The text type

writeText

public StreamWriter writeText(String name,
                              String namespace,
                              String prefix,
                              Text.Type type,
                              String value)
Description copied from interface: StreamWriter
Write a Text element

Specified by:
writeText in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix
type - The text type
value - The text value

writeText

public StreamWriter writeText(String name,
                              String namespace,
                              Text.Type type,
                              String value)
Description copied from interface: StreamWriter
Write a Text element

Specified by:
writeText in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace
type - The text type
value - The text value

writeText

public StreamWriter writeText(String name,
                              Text.Type type,
                              String value)
Description copied from interface: StreamWriter
Write a Text element

Specified by:
writeText in interface StreamWriter
Parameters:
name - The element name
type - The text type
value - The text value

startPerson

public StreamWriter startPerson(String name,
                                String namespace,
                                String prefix)
Description copied from interface: StreamWriter
Start a person element

Specified by:
startPerson in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix

startPerson

public StreamWriter startPerson(String name,
                                String namespace)
Description copied from interface: StreamWriter
Start a person element

Specified by:
startPerson in interface StreamWriter
Parameters:
name - The element name
namespace - The element namespace

startPerson

public StreamWriter startPerson(String name)
Description copied from interface: StreamWriter
Start a person element

Specified by:
startPerson in interface StreamWriter
Parameters:
name - The element name

writePerson

public StreamWriter writePerson(String localname,
                                String namespace,
                                String prefix,
                                String name,
                                String email,
                                String uri)
Description copied from interface: StreamWriter
Write a person element

Specified by:
writePerson in interface StreamWriter
namespace - the element namespace
prefix - the element prefix
name - The person name
email - The person email
uri - The person uri

writePerson

public StreamWriter writePerson(String localname,
                                String namespace,
                                String name,
                                String email,
                                String uri)
Description copied from interface: StreamWriter
Write a person element

Specified by:
writePerson in interface StreamWriter
namespace - the element namespace
name - The person name
email - The person email
uri - The person uri

writePerson

public StreamWriter writePerson(String localname,
                                String name,
                                String email,
                                String uri)
Description copied from interface: StreamWriter
Write a person element

Specified by:
writePerson in interface StreamWriter
name - The person name
email - The person email
uri - The person uri

append

public Appendable append(char c)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence csq,
                         int start,
                         int end)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence csq)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

writeElementText

public StreamWriter writeElementText(String format,
                                     Object... args)
Description copied from interface: StreamWriter
Write element text using Formatter

Specified by:
writeElementText in interface StreamWriter


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.