com.photoviewer.server.util
Class PictureRecord

java.lang.Object
  |
  +--com.photoviewer.server.util.PictureRecord
All Implemented Interfaces:
java.lang.Comparable

public class PictureRecord
extends java.lang.Object
implements java.lang.Comparable

A com.photoviewer.server.PictureRecord records all of the changed files in a particular directory on a certain date.


Field Summary
protected  java.util.Date date
           
protected  java.util.Vector filenames
           
protected  Path path
           
 
Constructor Summary
PictureRecord(java.util.Date dt, Path pt)
           
PictureRecord(Path root, java.lang.String dt, java.io.BufferedReader rdr)
           
 
Method Summary
 void addChange(java.io.File f)
           
 int compareTo(java.lang.Object o)
          Allow the records to be sorted.
 java.util.Date getDate()
           
 Path getPath()
           
protected  void nl(java.io.DataOutputStream ds)
           
protected  void storeTo(java.io.DataOutputStream ds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

date

protected java.util.Date date

path

protected Path path

filenames

protected java.util.Vector filenames
Constructor Detail

PictureRecord

public PictureRecord(java.util.Date dt,
                     Path pt)
              throws java.lang.Exception

PictureRecord

public PictureRecord(Path root,
                     java.lang.String dt,
                     java.io.BufferedReader rdr)
              throws java.lang.Exception
Method Detail

addChange

public void addChange(java.io.File f)

compareTo

public int compareTo(java.lang.Object o)
Allow the records to be sorted. Earlier Dates first.
Specified by:
compareTo in interface java.lang.Comparable

getDate

public java.util.Date getDate()

getPath

public Path getPath()

nl

protected void nl(java.io.DataOutputStream ds)
           throws java.lang.Exception

storeTo

protected void storeTo(java.io.DataOutputStream ds)
                throws java.lang.Exception