server
Class CalendarFormatParser

java.lang.Object
  extended byserver.CalendarFormatParser

public final class CalendarFormatParser
extends java.lang.Object

This class is needed for parsing the original UNIX calendar database format. Its parsing the calendar database from the file-system and its caching it into the memory. Then, the CalendarDatabase class can be used to access the database. Each calendar category has its own file. In each file all the calendar events of the specific categories are stored.

Author:
buetow

Constructor Summary
CalendarFormatParser()
          Simple constructor.
 
Method Summary
 java.util.Vector getCategories()
          This method returns a vector of all found calendar categories after parsing.
 void setWorkdir(java.lang.String sWorkdir)
          This method sets the working directory.
 void start()
          Starts the parsing work of the calendar database files.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarFormatParser

public CalendarFormatParser()
Simple constructor. Creates a calendar format parser object and initializes some private members.

Method Detail

getCategories

public java.util.Vector getCategories()
This method returns a vector of all found calendar categories after parsing.

Returns:
Returns a Vector of all available CalendarCategory objects.

setWorkdir

public void setWorkdir(java.lang.String sWorkdir)
This method sets the working directory. Its the "server_workdir" variable defined in the current configuration by default.

Parameters:
sWorkdir - Specifies the working directory.

start

public void start()
Starts the parsing work of the calendar database files.