org.odata4j.format.xml
Class AtomSingleLinkFormatWriter

java.lang.Object
  extended by org.odata4j.format.xml.XmlFormatWriter
      extended by org.odata4j.format.xml.AtomSingleLinkFormatWriter
All Implemented Interfaces:
FormatWriter<SingleLink>

public class AtomSingleLinkFormatWriter
extends XmlFormatWriter
implements FormatWriter<SingleLink>


Field Summary
 
Fields inherited from class org.odata4j.format.xml.XmlFormatWriter
app, atom, atom_entry_content_type, atom_feed_content_type, d, edm, edmx, m, related, scheme
 
Constructor Summary
AtomSingleLinkFormatWriter()
           
 
Method Summary
 String getContentType()
          Recover the MIME content type for the stream
 void write(UriInfo uriInfo, Writer w, SingleLink link)
          Write an object to the formatted version of the stream
 
Methods inherited from class org.odata4j.format.xml.XmlFormatWriter
writeElement, writeEntry, writeLinkInline, writeProperties, writeProperty, writeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomSingleLinkFormatWriter

public AtomSingleLinkFormatWriter()
Method Detail

getContentType

public String getContentType()
Description copied from interface: FormatWriter
Recover the MIME content type for the stream

Specified by:
getContentType in interface FormatWriter<SingleLink>
Returns:
the MIME content type to be used for the content of this stream

write

public void write(UriInfo uriInfo,
                  Writer w,
                  SingleLink link)
Description copied from interface: FormatWriter
Write an object to the formatted version of the stream

Specified by:
write in interface FormatWriter<SingleLink>
Parameters:
uriInfo - the base uri of the entity documents
w - the underlying "stream" to write to
link - the object to be written


http://odata4j.org