gzz.mediaserver
Class MediaserverFiler

java.lang.Object
  |
  +--gzz.mediaserver.MediaserverFiler
All Implemented Interfaces:
Filer

public class MediaserverFiler
extends java.lang.Object
implements Filer


Nested Class Summary
static class MediaserverFiler.Group
           
 
Nested classes inherited from class gzz.util.Filer
 
Field Summary
static boolean dbg
           
static java.lang.String diffContentType
           
static java.lang.String versionContentType
           
 
Constructor Summary
MediaserverFiler(Mediaserver ms, java.lang.String pointer, Version emptyVersion, VersionFormat fmt)
           
 
Method Summary
protected  Mediaserver.Id getVersionId(Version v, java.lang.String header)
           
 Version load()
          Load the current version stored in this filer.
protected  Version load(Mediaserver.Id id, java.lang.String[] hdr)
           
 void save(Version v)
          Save a version into this filer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbg

public static boolean dbg

versionContentType

public static final java.lang.String versionContentType
See Also:
Constant Field Values

diffContentType

public static final java.lang.String diffContentType
See Also:
Constant Field Values
Constructor Detail

MediaserverFiler

public MediaserverFiler(Mediaserver ms,
                        java.lang.String pointer,
                        Version emptyVersion,
                        VersionFormat fmt)
                 throws java.io.IOException
Method Detail

load

public Version load()
             throws java.io.IOException
Description copied from interface: Filer
Load the current version stored in this filer.

Specified by:
load in interface Filer
java.io.IOException

load

protected Version load(Mediaserver.Id id,
                       java.lang.String[] hdr)
                throws java.io.IOException
java.io.IOException

getVersionId

protected Mediaserver.Id getVersionId(Version v,
                                      java.lang.String header)
                               throws java.io.IOException
java.io.IOException

save

public void save(Version v)
          throws java.io.IOException
Description copied from interface: Filer
Save a version into this filer.

Specified by:
save in interface Filer
java.io.IOException