org.apache.abdera.factory
Class StreamBuilder

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

public class StreamBuilder
extends org.apache.abdera.util.AbstractStreamWriter

StreamBuilder is a special implementation of the StreamWriter interface that can be used to create Feed Object Model instances using the StreamWriter interface. StreamBuilder provides an additional method (getBase) for returning the FOM Base element that was built. The StreamWriter methods indent(), flush(), close(), setWriter(), setInputStream, setAutoclose(), setAutoflush(), setAutoIndent(), and setChannel() have no effect on this StreamWriter implementation

 StreamBuilder sw = new StreamBuilder();
 Entry entry =
     sw.startElement(Constants.ENTRY).writeBase("http://example.org").writeLanguage("en-US")
         .writeId("http://example.org").writeTitle("testing").writeUpdated(new Date()).endElement().getBase();
 entry.writeTo(System.out);
 


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

Constructor Detail

StreamBuilder

public StreamBuilder()

StreamBuilder

public StreamBuilder(Abdera abdera)
Method Detail

getBase

public <T extends Base> T getBase()

startDocument

public StreamBuilder startDocument(String xmlversion,
                                   String charset)
Description copied from interface: StreamWriter
Start the document

Parameters:
xmlversion - The XML version
charset - the Character Encoding

startDocument

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

Parameters:
xmlversion - The XML version

startElement

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


endElement

public StreamBuilder endElement()
Description copied from interface: StreamWriter
End the element


writeAttribute

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


writeComment

public StreamBuilder writeComment(String value)
Description copied from interface: StreamWriter
Write an XML comment


writeElementText

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

Parameters:
value - The text value

writeId

public StreamBuilder writeId()
Description copied from interface: StreamWriter
Write an atom:id element with a new IRI value


writePI

public StreamBuilder writePI(String value)
Description copied from interface: StreamWriter
Write an XML Processing Instruction


writePI

public StreamBuilder writePI(String value,
                             String target)
Description copied from interface: StreamWriter
Write an XML Processing Instruction


close

public void close()
           throws IOException
Throws:
IOException

flush

public StreamBuilder flush()

indent

public StreamBuilder indent()
Description copied from interface: StreamWriter
Write a new line and indent


setOutputStream

public StreamBuilder setOutputStream(OutputStream out)
Description copied from interface: StreamWriter
Set the target java.io.OutputStream


setOutputStream

public StreamBuilder setOutputStream(OutputStream out,
                                     String charset)
Description copied from interface: StreamWriter
Set the target java.io.OutputStream


setWriter

public StreamBuilder setWriter(Writer writer)
Description copied from interface: StreamWriter
Set the target java.io.Writer


endAuthor

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

Specified by:
endAuthor in interface StreamWriter
Overrides:
endAuthor in class org.apache.abdera.util.AbstractStreamWriter

endCategories

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

Specified by:
endCategories in interface StreamWriter
Overrides:
endCategories in class org.apache.abdera.util.AbstractStreamWriter

endCategory

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

Specified by:
endCategory in interface StreamWriter
Overrides:
endCategory in class org.apache.abdera.util.AbstractStreamWriter

endCollection

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

Specified by:
endCollection in interface StreamWriter
Overrides:
endCollection in class org.apache.abdera.util.AbstractStreamWriter

endContent

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

Specified by:
endContent in interface StreamWriter
Overrides:
endContent in class org.apache.abdera.util.AbstractStreamWriter

endContributor

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

Specified by:
endContributor in interface StreamWriter
Overrides:
endContributor in class org.apache.abdera.util.AbstractStreamWriter

endControl

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

Specified by:
endControl in interface StreamWriter
Overrides:
endControl in class org.apache.abdera.util.AbstractStreamWriter

endDocument

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

Specified by:
endDocument in interface StreamWriter
Overrides:
endDocument in class org.apache.abdera.util.AbstractStreamWriter

endEntry

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

Specified by:
endEntry in interface StreamWriter
Overrides:
endEntry in class org.apache.abdera.util.AbstractStreamWriter

endFeed

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

Specified by:
endFeed in interface StreamWriter
Overrides:
endFeed in class org.apache.abdera.util.AbstractStreamWriter

endGenerator

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

Specified by:
endGenerator in interface StreamWriter
Overrides:
endGenerator in class org.apache.abdera.util.AbstractStreamWriter

endLink

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

Specified by:
endLink in interface StreamWriter
Overrides:
endLink in class org.apache.abdera.util.AbstractStreamWriter

endPerson

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

Specified by:
endPerson in interface StreamWriter
Overrides:
endPerson in class org.apache.abdera.util.AbstractStreamWriter

endService

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

Specified by:
endService in interface StreamWriter
Overrides:
endService in class org.apache.abdera.util.AbstractStreamWriter

endSource

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

Specified by:
endSource in interface StreamWriter
Overrides:
endSource in class org.apache.abdera.util.AbstractStreamWriter

endText

public StreamBuilder endText()
Overrides:
endText in class org.apache.abdera.util.AbstractStreamWriter

endWorkspace

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

Specified by:
endWorkspace in interface StreamWriter
Overrides:
endWorkspace in class org.apache.abdera.util.AbstractStreamWriter

setAutoclose

public StreamBuilder 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
Overrides:
setAutoclose in class org.apache.abdera.util.AbstractStreamWriter

setAutoflush

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

Specified by:
setAutoflush in interface StreamWriter
Overrides:
setAutoflush in class org.apache.abdera.util.AbstractStreamWriter

setAutoIndent

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

Specified by:
setAutoIndent in interface StreamWriter
Overrides:
setAutoIndent in class org.apache.abdera.util.AbstractStreamWriter

setChannel

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

Specified by:
setChannel in interface StreamWriter
Overrides:
setChannel in class org.apache.abdera.util.AbstractStreamWriter

setChannel

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

Specified by:
setChannel in interface StreamWriter
Overrides:
setChannel in class org.apache.abdera.util.AbstractStreamWriter

startAuthor

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

Specified by:
startAuthor in interface StreamWriter
Overrides:
startAuthor in class org.apache.abdera.util.AbstractStreamWriter

startCategories

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

Specified by:
startCategories in interface StreamWriter
Overrides:
startCategories in class org.apache.abdera.util.AbstractStreamWriter

startCategories

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

Specified by:
startCategories in interface StreamWriter
Overrides:
startCategories in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
fixed - True if the app:categories element is fixed
scheme - The scheme value

startCategories

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

Specified by:
startCategories in interface StreamWriter
Overrides:
startCategories in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
fixed - True if the app:categories element is fixed

startCategory

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

Specified by:
startCategory in interface StreamWriter
Overrides:
startCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value
scheme - The term value
label - The term value

startCategory

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

Specified by:
startCategory in interface StreamWriter
Overrides:
startCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value
scheme - The term value

startCategory

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

Specified by:
startCategory in interface StreamWriter
Overrides:
startCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value

startCollection

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

Specified by:
startCollection in interface StreamWriter
Overrides:
startCollection in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
href - The href value

startContent

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

Specified by:
startContent in interface StreamWriter
Overrides:
startContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
src - The src value

startContent

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

Specified by:
startContent in interface StreamWriter
Overrides:
startContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type

startContent

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

Specified by:
startContent in interface StreamWriter
Overrides:
startContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
src - The src value

startContent

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

Specified by:
startContent in interface StreamWriter
Overrides:
startContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type

startContributor

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

Specified by:
startContributor in interface StreamWriter
Overrides:
startContributor in class org.apache.abdera.util.AbstractStreamWriter

startControl

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

Specified by:
startControl in interface StreamWriter
Overrides:
startControl in class org.apache.abdera.util.AbstractStreamWriter

startDocument

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

Specified by:
startDocument in interface StreamWriter
Overrides:
startDocument in class org.apache.abdera.util.AbstractStreamWriter

startElement

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

Specified by:
startElement in interface StreamWriter
Overrides:
startElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - Element qname

startElement

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

Specified by:
startElement in interface StreamWriter
Overrides:
startElement in class org.apache.abdera.util.AbstractStreamWriter

startElement

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

Specified by:
startElement in interface StreamWriter
Overrides:
startElement in class org.apache.abdera.util.AbstractStreamWriter

startEntry

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

Specified by:
startEntry in interface StreamWriter
Overrides:
startEntry in class org.apache.abdera.util.AbstractStreamWriter

startFeed

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

Specified by:
startFeed in interface StreamWriter
Overrides:
startFeed in class org.apache.abdera.util.AbstractStreamWriter

startGenerator

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

Specified by:
startGenerator in interface StreamWriter
Overrides:
startGenerator in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
version - The version value
uri - The uri value

startLink

public StreamBuilder 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
Overrides:
startLink in class org.apache.abdera.util.AbstractStreamWriter
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

startLink

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

Specified by:
startLink in interface StreamWriter
Overrides:
startLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value

startLink

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

Specified by:
startLink in interface StreamWriter
Overrides:
startLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value
rel - The rel value

startLink

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

Specified by:
startLink in interface StreamWriter
Overrides:
startLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value

startPerson

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

Specified by:
startPerson in interface StreamWriter
Overrides:
startPerson in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - The element qname

startPerson

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

Specified by:
startPerson in interface StreamWriter
Overrides:
startPerson in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix

startPerson

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

Specified by:
startPerson in interface StreamWriter
Overrides:
startPerson in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace

startPerson

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

Specified by:
startPerson in interface StreamWriter
Overrides:
startPerson in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name

startService

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

Specified by:
startService in interface StreamWriter
Overrides:
startService in class org.apache.abdera.util.AbstractStreamWriter

startSource

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

Specified by:
startSource in interface StreamWriter
Overrides:
startSource in class org.apache.abdera.util.AbstractStreamWriter

startText

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

Specified by:
startText in interface StreamWriter
Overrides:
startText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - The element qname
type - The text type

startText

public StreamBuilder 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
Overrides:
startText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix
type - The text type

startText

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

Specified by:
startText in interface StreamWriter
Overrides:
startText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace
type - The text type

startText

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

Specified by:
startText in interface StreamWriter
Overrides:
startText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
type - The text type

startWorkspace

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

Specified by:
startWorkspace in interface StreamWriter
Overrides:
startWorkspace in class org.apache.abdera.util.AbstractStreamWriter

writeAccepts

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

Specified by:
writeAccepts in interface StreamWriter
Overrides:
writeAccepts in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
accepts - accept element values

writeAcceptsEntry

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

Specified by:
writeAcceptsEntry in interface StreamWriter
Overrides:
writeAcceptsEntry in class org.apache.abdera.util.AbstractStreamWriter

writeAcceptsNothing

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

Specified by:
writeAcceptsNothing in interface StreamWriter
Overrides:
writeAcceptsNothing in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAttribute

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

Specified by:
writeAttribute in interface StreamWriter
Overrides:
writeAttribute in class org.apache.abdera.util.AbstractStreamWriter

writeAuthor

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

Specified by:
writeAuthor in interface StreamWriter
Overrides:
writeAuthor in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The person name
email - The person email
uri - The person uri

writeAuthor

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

Specified by:
writeAuthor in interface StreamWriter
Overrides:
writeAuthor in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The person name

writeBase

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

Specified by:
writeBase in interface StreamWriter
Overrides:
writeBase in class org.apache.abdera.util.AbstractStreamWriter

writeBase

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

Specified by:
writeBase in interface StreamWriter
Overrides:
writeBase in class org.apache.abdera.util.AbstractStreamWriter

writeCategory

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

Specified by:
writeCategory in interface StreamWriter
Overrides:
writeCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value
scheme - The term value
label - The term value

writeCategory

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

Specified by:
writeCategory in interface StreamWriter
Overrides:
writeCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value
scheme - The term value

writeCategory

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

Specified by:
writeCategory in interface StreamWriter
Overrides:
writeCategory in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
term - The term value

writeContent

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

Specified by:
writeContent in interface StreamWriter
Overrides:
writeContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeContent

public StreamBuilder 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
Overrides:
writeContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value
Throws:
IOException

writeContent

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

Specified by:
writeContent in interface StreamWriter
Overrides:
writeContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value
Throws:
IOException

writeContent

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

Specified by:
writeContent in interface StreamWriter
Overrides:
writeContent in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeContributor

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

Specified by:
writeContributor in interface StreamWriter
Overrides:
writeContributor in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The person name
email - The person email
uri - The person uri

writeContributor

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

Specified by:
writeContributor in interface StreamWriter
Overrides:
writeContributor in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The person name

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - The element qname
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - The element qname
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - The element prefix
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - The element prefix
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
date - The date value

writeDate

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

Specified by:
writeDate in interface StreamWriter
Overrides:
writeDate in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
date - The date value

writeDraft

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

Specified by:
writeDraft in interface StreamWriter
Overrides:
writeDraft in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
draft - true if app:draft=yes

writeEdited

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

Specified by:
writeEdited in interface StreamWriter
Overrides:
writeEdited in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

writeEdited

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

Specified by:
writeEdited in interface StreamWriter
Overrides:
writeEdited in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value
Throws:
IOException

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value
Throws:
IOException

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeElementText

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

Specified by:
writeElementText in interface StreamWriter
Overrides:
writeElementText in class org.apache.abdera.util.AbstractStreamWriter

writeGenerator

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

Specified by:
writeGenerator in interface StreamWriter
Overrides:
writeGenerator in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
version - The version value
uri - The uri value
value - The text value

writeIcon

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

Specified by:
writeIcon in interface StreamWriter
Overrides:
writeIcon in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writeIcon

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

Specified by:
writeIcon in interface StreamWriter
Overrides:
writeIcon in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writeId

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

Specified by:
writeId in interface StreamWriter
Overrides:
writeId in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writeId

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

Specified by:
writeId in interface StreamWriter
Overrides:
writeId in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
iri - The value

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
iri - The value

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
iri - the IRI to write

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
iri - the IRI to write

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - the element prefix
iri - the IRI to write

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
prefix - the element prefix
iri - the IRI to write

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
namespace - The element namespace
iri - the IRI to write

writeIRIElement

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

Specified by:
writeIRIElement in interface StreamWriter
Overrides:
writeIRIElement in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element localname
iri - the IRI to write

writeLanguage

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

Specified by:
writeLanguage in interface StreamWriter
Overrides:
writeLanguage in class org.apache.abdera.util.AbstractStreamWriter

writeLanguage

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

Specified by:
writeLanguage in interface StreamWriter
Overrides:
writeLanguage in class org.apache.abdera.util.AbstractStreamWriter

writeLanguage

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

Specified by:
writeLanguage in interface StreamWriter
Overrides:
writeLanguage in class org.apache.abdera.util.AbstractStreamWriter

writeLink

public StreamBuilder 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
Overrides:
writeLink in class org.apache.abdera.util.AbstractStreamWriter
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

writeLink

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

Specified by:
writeLink in interface StreamWriter
Overrides:
writeLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value
rel - The rel value
type - The type value

writeLink

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

Specified by:
writeLink in interface StreamWriter
Overrides:
writeLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value
rel - The rel value

writeLink

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

Specified by:
writeLink in interface StreamWriter
Overrides:
writeLink in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The href value

writeLogo

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

Specified by:
writeLogo in interface StreamWriter
Overrides:
writeLogo in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writeLogo

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

Specified by:
writeLogo in interface StreamWriter
Overrides:
writeLogo in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
iri - The value

writePerson

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

Specified by:
writePerson in interface StreamWriter
Overrides:
writePerson in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - the element qname
name - The person name
email - The person email
uri - The person uri

writePerson

public StreamBuilder 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
Overrides:
writePerson in class org.apache.abdera.util.AbstractStreamWriter
namespace - the element namespace
prefix - the element prefix
name - The person name
email - The person email
uri - The person uri

writePerson

public StreamBuilder 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
Overrides:
writePerson in class org.apache.abdera.util.AbstractStreamWriter
namespace - the element namespace
name - The person name
email - The person email
uri - The person uri

writePerson

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

Specified by:
writePerson in interface StreamWriter
Overrides:
writePerson in class org.apache.abdera.util.AbstractStreamWriter
name - The person name
email - The person email
uri - The person uri

writePersonEmail

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

Specified by:
writePersonEmail in interface StreamWriter
Overrides:
writePersonEmail in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
email - The person email

writePersonName

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

Specified by:
writePersonName in interface StreamWriter
Overrides:
writePersonName in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The person name

writePersonUri

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

Specified by:
writePersonUri in interface StreamWriter
Overrides:
writePersonUri in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
uri - The person uri

writePublished

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

Specified by:
writePublished in interface StreamWriter
Overrides:
writePublished in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

writePublished

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

Specified by:
writePublished in interface StreamWriter
Overrides:
writePublished in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

writeRights

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

Specified by:
writeRights in interface StreamWriter
Overrides:
writeRights in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeRights

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

Specified by:
writeRights in interface StreamWriter
Overrides:
writeRights in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeSubtitle

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

Specified by:
writeSubtitle in interface StreamWriter
Overrides:
writeSubtitle in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeSubtitle

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

Specified by:
writeSubtitle in interface StreamWriter
Overrides:
writeSubtitle in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeSummary

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

Specified by:
writeSummary in interface StreamWriter
Overrides:
writeSummary in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeSummary

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

Specified by:
writeSummary in interface StreamWriter
Overrides:
writeSummary in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeText

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

Specified by:
writeText in interface StreamWriter
Overrides:
writeText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
qname - The element qname
type - The text type
value - The text value

writeText

public StreamBuilder 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
Overrides:
writeText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace
prefix - The element prefix
type - The text type
value - The text value

writeText

public StreamBuilder 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
Overrides:
writeText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
namespace - The element namespace
type - The text type
value - The text value

writeText

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

Specified by:
writeText in interface StreamWriter
Overrides:
writeText in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
name - The element name
type - The text type
value - The text value

writeTitle

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

Specified by:
writeTitle in interface StreamWriter
Overrides:
writeTitle in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
value - The text value

writeTitle

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

Specified by:
writeTitle in interface StreamWriter
Overrides:
writeTitle in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
type - The text type
value - The text value

writeUpdated

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

Specified by:
writeUpdated in interface StreamWriter
Overrides:
writeUpdated in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

writeUpdated

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

Specified by:
writeUpdated in interface StreamWriter
Overrides:
writeUpdated in class org.apache.abdera.util.AbstractStreamWriter
Parameters:
date - The date value

setPrefix

public StreamBuilder setPrefix(String prefix,
                               String uri)
Description copied from interface: StreamWriter
Specify the namespace prefix


writeNamespace

public StreamBuilder writeNamespace(String prefix,
                                    String uri)
Description copied from interface: StreamWriter
Write a namespace declaration



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