public class ZipSerializableViewImpl extends java.lang.Object implements ZipSerializableView
Serializable
view of Archive
s, backed by ZIP en/decoding the contents during
serialization/deserialization. Defines the wire protocol and must remain backwards-compatible.Modifier and Type | Field and Description |
---|---|
private Archive<?> |
archive
Underlying archive.
|
private java.lang.String |
id
String form of the ID
|
private static java.util.logging.Logger |
log
Logger
|
private java.lang.String |
name
Name of the archive; to be serialized
|
private static long |
serialVersionUID
serialVersionUID
|
Constructor and Description |
---|
ZipSerializableViewImpl(Archive<?> archive)
Creates a new instance, wrapping the specified
Archive |
Modifier and Type | Method and Description |
---|---|
<TYPE extends Assignable> |
as(java.lang.Class<TYPE> clazz)
Wraps an Archive in a different 'view'.
|
private void |
readObject(java.io.ObjectInputStream in)
Deserializes according to the custom form defined by
ZipSerializableImpl#writeObject(ObjectOutputStream) |
private void |
writeObject(java.io.ObjectOutputStream out)
Serializes the invocation with a custom form
|
private static final long serialVersionUID
private static final java.util.logging.Logger log
private final java.lang.String name
private transient java.lang.String id
private transient Archive<?> archive
public <TYPE extends Assignable> TYPE as(java.lang.Class<TYPE> clazz)
as
in interface Assignable
clazz
- Extension interface to loadAssignable.as(java.lang.Class)
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
ZipSerializableImpl#writeObject(ObjectOutputStream)
java.io.IOException
java.lang.ClassNotFoundException