public class RemoteResources
extends java.lang.Object
Constructor and Description |
---|
RemoteResources() |
Modifier and Type | Method and Description |
---|---|
void |
add(RemoteResource r) |
java.util.List<RemoteResource> |
getResources() |
static RemoteResources |
load(java.io.File file,
Serializer serializer)
Restores a remove resource from a serialized file.
|
boolean |
save(java.io.File file,
Serializer serializer)
Allows for serialization of a remote resource.
|
void |
setResources(java.util.List<RemoteResource> resources) |
public java.util.List<RemoteResource> getResources()
public void add(RemoteResource r)
public void setResources(java.util.List<RemoteResource> resources)
public static RemoteResources load(java.io.File file, Serializer serializer)
file
- The source of the serialized dataserializer
- The serializer to use.public boolean save(java.io.File file, Serializer serializer)
file
- The destination file used for the serialized dataserializer
- The serializer to be used when producing the file.