public interface Store<T>
| Modifier and Type | Method and Description |
|---|---|
URI |
getLocation(Handle handle)
Fixed location for a resource that has been stored before.
|
T |
load(Handle handle)
Load a T after (successfully) stored it before.
|
Handle |
store(T inp)
Read incoming object of type T (for example an InputSteam)
|
Handle store(T inp) throws IOException
inp - object to be stored. Implementations are usually bound to a certain TIOException - in case incoming object cannot be read (if it involves IO)T load(Handle handle) throws IOException
handle - identifier that has been returned from a previous srore call.IOException - if loading resource involves IO, things can always go wrong.URI getLocation(Handle handle) throws IOException
handle - must refer to a previously stored object.IOException - if IO is involved, things may go mad.UnsupportedOperationException - implementation may not support this.Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.