org.odata4j.format
Interface FormatWriter<T>

Type Parameters:
T - the type of the entities to be written
All Known Implementing Classes:
AtomCollectionFormatWriter, AtomComplexFormatWriter, AtomEntryFormatWriter, AtomErrorFormatWriter, AtomFeedFormatWriter, AtomRequestEntryFormatWriter, AtomServiceDocumentFormatWriter, AtomSimpleFormatWriter, AtomSingleLinkFormatWriter, AtomSingleLinksFormatWriter, JsonCollectionFormatWriter, JsonComplexObjectFormatWriter, JsonEntryFormatWriter, JsonErrorFormatWriter, JsonFeedFormatWriter, JsonFormatWriter, JsonPropertyFormatWriter, JsonRequestEntryFormatWriter, JsonServiceDocumentFormatWriter, JsonSimpleFormatWriter, JsonSingleLinkFormatWriter, JsonSingleLinksFormatWriter, XmlPropertyFormatWriter

public interface FormatWriter<T>

Write entities to an output stream in a particular format


Method Summary
 String getContentType()
          Recover the MIME content type for the stream
 void write(UriInfo uriInfo, Writer w, T target)
          Write an object to the formatted version of the stream
 

Method Detail

getContentType

String getContentType()
Recover the MIME content type for the stream

Returns:
the MIME content type to be used for the content of this stream

write

void write(UriInfo uriInfo,
           Writer w,
           T target)
Write an object to the formatted version of the stream

Parameters:
uriInfo - the base uri of the entity documents
w - the underlying "stream" to write to
target - the object to be written


http://odata4j.org