Deprecate WriteTo

Use Payload.getInput and Guava helpers instead
This commit is contained in:
Andrew Gaul 2014-02-19 22:10:05 -08:00
parent b3f7838958
commit 08992c7a3d
1 changed files with 9 additions and 0 deletions

View File

@ -22,13 +22,22 @@ import java.io.OutputStream;
/**
* @author Adrian Cole
*/
@Deprecated
public interface WriteTo {
/**
* Writes the payload content to the output stream.
*
* @throws IOException
* @deprecated use Payload.getInput with Guava helpers, e.g.,
* Payload payload = blob.getPayload();
* try {
* ByteStreams.copy(payload.getInput(), outstream);
* } finally {
* payload.release();
* }
*/
@Deprecated
void writeTo(OutputStream outstream) throws IOException;
}