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


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

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


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

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