Package org.apache.olingo.server.api
Interface ODataContent
public interface ODataContent
Contains the response content for the OData request.
Because the content is potential streamable an error can occur when the
write methods are used.
If this happens NO exception will be thrown but if registered the
org.apache.olingo.server.api.ODataContentWriteErrorCallback is called.-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(OutputStream stream) Write the available content into the givenOutputStream.voidwrite(WritableByteChannel channel) Write the available content into the givenWritableByteChannel.
-
Method Details
-
write
Write the available content into the givenWritableByteChannel. If during write of the content an exception is thrown this exception will be catched and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).- Parameters:
channel- channel in which the content is written.
-
write
Write the available content into the givenOutputStream. If during write of the content an exception is thrown this exception will be catched and the org.apache.olingo.server.api.ODataContentWriteErrorCallback is called (if registered).- Parameters:
stream- stream in which the content is written.
-