Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jv.jsm.evt
Class JsmUtil  view JsmUtil download JsmUtil.java

java.lang.Object
  extended bycom.jv.jsm.evt.JsmUtil

public class JsmUtil
extends java.lang.Object

This class provides a simple configuration file reader. The configuration file should have the format:

# comment

[group]
key: value

The output is a hashtable with the following key structure:

group.key.index

The group is the group specified within '[]' brackets. The value is the value of the key and the index is the index of the occurrence of the key-value pair.

Version:
1.0.1

Field Summary
private static java.lang.String dbHost
           
private static java.lang.String dbPasswd
           
private static int dbType
           
private static java.lang.String dbUser
           
private static int debugLevel
           
private static java.lang.String fileName
           
private  java.io.BufferedReader in
           
private  JsmEvtDb jsmEvtDb
           
private  JsmLogWriter jsmLogWriter
           
private  int lastMsgId
           
private  int lineNo
           
 
Constructor Summary
JsmUtil()
           
 
Method Summary
(package private)  void defineAction(java.io.BufferedReader in, java.lang.String line)
           
(package private)  void defineMessage(java.io.BufferedReader in, java.lang.String line)
           
(package private)  void deleteAction(java.io.BufferedReader in, java.lang.String line)
           
(package private)  void deleteMessage(java.io.BufferedReader in, java.lang.String line)
           
static void main(java.lang.String[] args)
           
 boolean readFile()
          This method is actually reading the configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbType

private static int dbType

dbHost

private static java.lang.String dbHost

dbUser

private static java.lang.String dbUser

dbPasswd

private static java.lang.String dbPasswd

fileName

private static java.lang.String fileName

lineNo

private int lineNo

in

private java.io.BufferedReader in

jsmEvtDb

private JsmEvtDb jsmEvtDb

lastMsgId

private int lastMsgId

debugLevel

private static int debugLevel

jsmLogWriter

private JsmLogWriter jsmLogWriter
Constructor Detail

JsmUtil

public JsmUtil()
Method Detail

defineMessage

void defineMessage(java.io.BufferedReader in,
                   java.lang.String line)

deleteMessage

void deleteMessage(java.io.BufferedReader in,
                   java.lang.String line)

defineAction

void defineAction(java.io.BufferedReader in,
                  java.lang.String line)

deleteAction

void deleteAction(java.io.BufferedReader in,
                  java.lang.String line)

readFile

public boolean readFile()
This method is actually reading the configuration file.


main

public static void main(java.lang.String[] args)