public abstract class PersistableTransfer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static com.fasterxml.jackson.databind.ObjectMapper |
MAPPER |
Constructor and Description |
---|
PersistableTransfer() |
Modifier and Type | Method and Description |
---|---|
static <T extends PersistableTransfer> |
deserializeFrom(java.io.InputStream in)
Returns the deserialized transfer state of the given serialized
representation.
|
static <T extends PersistableTransfer> |
deserializeFrom(java.lang.String serialized)
Returns the deserialized transfer state of the given serialized
representation.
|
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 . |
public final 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.IOException
public 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.