Interface StreamingOutput

public interface StreamingOutput

A type that may be used as a resource method return value or as the entity in a Response when the application wishes to stream the output. This is a lightweight alternative to a MessageBodyWriter.

See Also:
MessageBodyWriter, Response

Method Summary
 void write( output)
          Called to write the message body.

Method Detail


void write( output)
Called to write the message body.

output - the OutputStream to write to.
Throws: - if an IO error is encountered
WebApplicationException - if a specific HTTP error response needs to be produced. Only effective if thrown prior to any bytes being written to output.

Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

Scripting on this page tracks web page traffic, but does not change the content in any way.