org.odata4j.format
Interface FormatWriter<T>

Type Parameters:
T - the type of the entities to be written
All Known Implementing Classes:
AtomEntryFormatWriter, AtomFeedFormatWriter, AtomRequestEntryFormatWriter, AtomServiceDocumentFormatWriter, JsonEntryFormatWriter, JsonFeedFormatWriter, JsonFormatWriter, JsonPropertyFormatWriter, JsonRequestEntryFormatWriter, JsonServiceDocumentFormatWriter, XmlPropertyFormatWriter

public interface FormatWriter<T>

Write entities to an HTTP stream in a particular format


Method Summary
 String getContentType()
          Recover the MIME content type for the stream
 void write(ExtendedUriInfo 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(ExtendedUriInfo 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