public class AttachmentDescriptor
extends java.lang.Object
implements java.io.Externalizable
Modifier and Type | Field and Description |
---|---|
java.lang.String |
resource
Path or URL.
|
ResourceType |
type
Type of attachment.
|
Constructor and Description |
---|
AttachmentDescriptor()
Default constructor, only used for serialization.
|
AttachmentDescriptor(ResourceType type,
java.lang.String resource)
Construct an instance with the given state.
|
Modifier and Type | Method and Description |
---|---|
void |
readExternal(java.io.ObjectInput in)
Replacement for the default object reading method.
|
void |
writeExternal(java.io.ObjectOutput out)
Replacement for the default object writing method.
|
public ResourceType type
public java.lang.String resource
public AttachmentDescriptor()
public AttachmentDescriptor(ResourceType type, java.lang.String resource)
type
- The type of the resource being attached.resource
- The path or URL of the resource to be attached.public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
in
- The input source from which fields will be restored.java.io.IOException
- In case of I/O errors.java.lang.ClassNotFoundException
- If payload can't be instantiated.public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
out
- The output destination to which fields will be saved.java.io.IOException
- In case of I/O errors.