public abstract class PersistableTransfer extends Object
Constructor and Description |
---|
PersistableTransfer() |
Modifier and Type | Method and Description |
---|---|
static <T extends PersistableTransfer> |
deserializeFrom(InputStream in)
Returns the deserialized transfer state of the given serialized
representation.
|
static <T extends PersistableTransfer> |
deserializeFrom(String serialized)
Returns the deserialized transfer state of the given serialized
representation.
|
String |
serialize()
Returns the serialized representation of the paused transfer state.
|
void |
serialize(OutputStream out)
Writes the serialized representation of the paused transfer state to the
given
OutputStream . |
public final String serialize()
public final void serialize(OutputStream out) throws IOException
OutputStream
. Caller of this method should explicitly
close the OutputStream
.IOException
public static <T extends PersistableTransfer> T deserializeFrom(InputStream in)
InputStream
.UnsupportedOperationException
- if the paused transfer type extracted from the serialized
representation is not supported.public static <T extends PersistableTransfer> T deserializeFrom(String serialized)
UnsupportedOperationException
- if the paused transfer type extracted from the serialized
representation is not supported.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.