mirror of https://github.com/apache/jclouds.git
Deprecate WriteTo
Use Payload.getInput and Guava helpers instead
This commit is contained in:
parent
b3f7838958
commit
08992c7a3d
|
@ -22,13 +22,22 @@ import java.io.OutputStream;
|
||||||
/**
|
/**
|
||||||
* @author Adrian Cole
|
* @author Adrian Cole
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public interface WriteTo {
|
public interface WriteTo {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Writes the payload content to the output stream.
|
* Writes the payload content to the output stream.
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @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;
|
void writeTo(OutputStream outstream) throws IOException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue