org.glassfish.jersey.message.internal
Interface OutboundMessageContext.StreamProvider

Enclosing class:
OutboundMessageContext

public static interface OutboundMessageContext.StreamProvider

Output stream provider.


Method Summary
 void commit()
          Perform the commit functionality.
 OutputStream getOutputStream()
          Get the output stream.
 

Method Detail

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Get the output stream. The method is called once as part of a "commit" operation immediately after the commit() method has been invoked.

Returns:
the adapted output stream.
Throws:
IOException - in case of an IO error.

commit

void commit()
            throws IOException
Perform the commit functionality. The method is called once as part of a "commit" operation before the first byte is written to the provider stream.

Throws:
IOException - in case of an IO error.


Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.