|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.mobileconnectors.s3.transfermanager.PersistableTransfer
public abstract class PersistableTransfer
Abstract base class for the information of a pausible upload or download; such information can be used to resume the upload or download later on, and can be serialized/deserialized for persistence purposes.
| Constructor Summary | |
|---|---|
PersistableTransfer()
|
|
| Method Summary | ||
|---|---|---|
static
|
deserializeFrom(java.io.InputStream in)
Returns the deserialized transfer state of the given serialized representation. |
|
static
|
deserializeFrom(java.lang.String serialized)
Returns the deserialized transfer state of the given serialized representation. |
|
abstract java.lang.String |
serialize()
Returns the serialized representation of the paused transfer state. |
|
void |
serialize(java.io.OutputStream out)
Writes the serialized representation of the paused transfer state to the given OutputStream. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PersistableTransfer()
| Method Detail |
|---|
public abstract java.lang.String serialize()
public final void serialize(java.io.OutputStream out)
throws java.io.IOException
OutputStream. Caller of this method should explicitly
close the OutputStream.
java.io.IOExceptionpublic static <T extends PersistableTransfer> T deserializeFrom(java.io.InputStream in)
InputStream.
java.lang.UnsupportedOperationException - if the paused transfer type extracted from the serialized
representation is not supported.public static <T extends PersistableTransfer> T deserializeFrom(java.lang.String serialized)
java.lang.UnsupportedOperationException - if the paused transfer type extracted from the serialized
representation is not supported.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||