org.odata4j.format.json
Class JsonRequestEntryFormatWriter
java.lang.Object
   org.odata4j.format.json.JsonFormatWriter<Entry>
org.odata4j.format.json.JsonFormatWriter<Entry>
       org.odata4j.format.json.JsonRequestEntryFormatWriter
org.odata4j.format.json.JsonRequestEntryFormatWriter
- All Implemented Interfaces: 
- FormatWriter<Entry>
- public class JsonRequestEntryFormatWriter 
- extends JsonFormatWriter<Entry>
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JsonRequestEntryFormatWriter
public JsonRequestEntryFormatWriter(String jsonpCallback)
getContentType
public String getContentType()
- Description copied from interface: FormatWriter
- Recover the MIME content type for the stream
 
- 
- Specified by:
- getContentTypein interface- FormatWriter<Entry>
- Overrides:
- getContentTypein class- JsonFormatWriter<Entry>
 
- 
- Returns:
- the MIME content type to be used for the content of this stream
 
write
public void write(UriInfo uriInfo,
                  Writer w,
                  Entry target)
- Description copied from interface: FormatWriter
- Write an object to the formatted version of the stream
 
- 
- Specified by:
- writein interface- FormatWriter<Entry>
- Overrides:
- writein class- JsonFormatWriter<Entry>
 
- 
- Parameters:
- uriInfo- the base uri of the entity documents
- w- the underlying "stream" to write to
- target- the object to be written
 
writeContent
protected void writeContent(UriInfo uriInfo,
                            JsonWriter jw,
                            Entry target)
- Description copied from class: JsonFormatWriter
- A strategy method to actually write content objects
 
- 
- Specified by:
- writeContentin class- JsonFormatWriter<Entry>
 
- 
- Parameters:
- uriInfo- the base URI that indicates where in the schema we are
- jw- the JSON writer object
- target- the content value to be written
 
http://odata4j.org