|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.gee.publication.net.WStorable
public abstract class WStorable
| Field Summary | |
|---|---|
protected boolean |
_isStorable
|
protected long |
_lastModified
The last modified date returned by the server at loading time |
static char |
BASE64ENCODING
|
static char |
GZIPCOMPRESSION
|
static char |
NONE
|
static char |
WLZ77COMPRESSION
|
| Constructor Summary | |
|---|---|
WStorable()
|
|
| Method Summary | |
|---|---|
abstract Object |
clone()
Clone the storable object. |
void |
destroy()
Destroy yourself, i.e. |
char |
getCompression()
Get the Compression to be used on this storable. |
char |
getEncoding()
Get the Encoding to be used on this storable. |
long |
getLastModified()
|
char |
getVersion()
Get the version number of the storable output. |
boolean |
isStorable()
By default, any WStorable is storable (as it's name suggests). |
abstract void |
load(InputStream input,
int version)
Load the storable object from an inputstream. |
void |
setLastModified(long lm)
Keep the Last Modified Time in Seconds! |
void |
setStorable(boolean isStorable)
By default, any WStorable is storable (as it's name suggests). |
abstract void |
store(OutputStream output)
Store the storable to an output stream. |
static long |
toSeconds(long time)
Adapt the Last Modified Time to seconds. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long _lastModified
public static final char NONE
public static final char BASE64ENCODING
public static final char GZIPCOMPRESSION
public static final char WLZ77COMPRESSION
protected boolean _isStorable
| Constructor Detail |
|---|
public WStorable()
| Method Detail |
|---|
public void setLastModified(long lm)
public static long toSeconds(long time)
public long getLastModified()
public abstract void store(OutputStream output)
throws IOException
output - the output stream to store to.
IOException
public abstract void load(InputStream input,
int version)
throws IOException
input - the input stream to load from.version - the version of the input.
IOExceptionpublic char getVersion()
public char getEncoding()
public char getCompression()
public void destroy()
public boolean isStorable()
public void setStorable(boolean isStorable)
public abstract Object clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||