org.glassfish.jersey.client
Interface RequestWriter.RequestEntityWriter

Enclosing class:
RequestWriter

protected static interface RequestWriter.RequestEntityWriter

A writer for writing a request entity.


Method Summary
 long getSize()
          Get the size, in bytes, of the request entity, otherwise -1 if the size cannot be determined before serialization.
 void writeRequestEntity(java.io.OutputStream out)
          Write the request entity.
 

Method Detail

getSize

long getSize()
Get the size, in bytes, of the request entity, otherwise -1 if the size cannot be determined before serialization.

Returns:
size the size, in bytes, of the request entity, otherwise -1 if the size cannot be determined before serialization.

writeRequestEntity

void writeRequestEntity(java.io.OutputStream out)
                        throws java.io.IOException
Write the request entity.

Parameters:
out - the output stream to write the request entity.
Throws:
java.io.IOException - in case of IO error.


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