Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * The contents of this file are subject to the terms
  * of the Common Development and Distribution License
  * (the "License").  You may not use this file except
  * in compliance with the License.
  * You can obtain a copy of the license at
  * See the License for the specific language governing
 * permissions and limitations under the License.
 * Created on March 3, 2008, 4:00 PM
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

public interface StreamingOutput {
Called to write the message body.

output the OutputStream to write to.
Throws: if an IO error is encountered if a specific HTTP error response needs to be produced. Only effective if thrown prior to any bytes being written to output.
    void write(OutputStream outputthrows IOExceptionWebApplicationException
New to GrepCode? Check out our FAQ X