org.w3c.www.protocol.http.cache
Class CacheSerializer
java.lang.Object
|
+--org.w3c.www.protocol.http.cache.CacheSerializer
- Direct Known Subclasses:
- SimpleCacheSerializer
- public abstract class CacheSerializer
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CacheSerializer
public CacheSerializer()
writeGeneration
public abstract void writeGeneration(CacheGeneration generation,
java.io.Writer writer)
throws java.io.IOException
- Save a Generation, using a specified writer
- Parameters:
generation, - a CacheGeneration, the generation to be savedwriter, - a Writer, the writer used to serialize this generation
writeGenerationList
public abstract void writeGenerationList(CacheStore store)
throws java.io.IOException
- Save the list of generations (except the 'description' Generation)
- Parameters:
store, - the Store to be dumpedwriter - a Writer, used to dump
readGeneration
public abstract CacheGeneration readGeneration(CacheGeneration generation,
java.io.Reader reader)
throws java.io.IOException
- Read a Generation, using a specified reader
- Parameters:
generation, - a CacheGeneration, the generation to be savedreader, - the Reader used to read this generation
readDescription
public abstract CacheGeneration readDescription(CacheGeneration generation,
java.io.Reader reader)
throws java.io.IOException
- Read a Generation containing only CachedResourceDescription,
using a specified reader.
- Parameters:
generation, - a CacheGeneration, the generation to be 'loaded'reader, - the Reader used to read this generation
write
public abstract void write(AttributeHolder holder,
java.io.Writer writer)
throws java.io.IOException
- Save an Attribute Holder
- Parameters:
holder, - the attribute holderwriter, - a Writer, the writer used to serialize this generation
read
public abstract AttributeHolder read(java.io.Reader reader)
throws java.io.IOException
- Read an Attribute Holder
- Parameters:
holder, - the attribute holderreader, - a Reader, the reader used to read the holder