org.stringer.ui
Class Main

java.lang.Object
  |
  +--org.stringer.ui.Main
All Implemented Interfaces:
StringerConstants

public class Main
extends java.lang.Object
implements StringerConstants

Author:
R. Kevin Cole, kcole@users.sourceforge.net

Field Summary
protected static java.lang.String configDir
           
static java.lang.String DEFAULT_PARSER_NAME
          Default parser name.
(package private) static org.apache.log4j.Logger logger
           
protected static java.lang.String newnewsFile
           
protected static java.lang.String newsrcFile
           
(package private) static long startTime
           
(package private) static java.util.Properties VersionProperties
           
 
Fields inherited from interface org.stringer.StringerConstants
ABOUT_KEY, BACKUP_DIR, BACKUP_FEEDRC_FILE, BACKUP_SUBSCRIPTION_FILE, COPY_KEY, DELETE_KEY, DOCTYPE, EXIT_KEY, EXPORT_KEY, FEED_DIR, HOME_DIR, IMPORT_KEY, ITEM_PROPERTIES_KEY, KILLALL_KEY, NEWFEED_KEY, NEWFOLDER_KEY, REFRESH_FEEDS_KEY, SUBSCRIPTION_FILE, UPDATE_FEEDS_KEY, UPDATESELECTED_KEY, UPDATESUBSCRIBED_KEY, XMLVERSION
 
Constructor Summary
Main()
           
 
Method Summary
static java.lang.String getBackupDir()
           
static java.lang.String getBackupFeedRCFile()
           
static java.lang.String getBackupNewNewsFile()
           
static java.lang.String getBackupSubscriptionFile()
           
static java.lang.String getBuildDate()
           
static java.lang.String getBuildNumber()
           
static java.lang.String getDocType()
           
static java.lang.String getFeedDir()
           
static java.lang.String getNewNewsFile()
           
static java.lang.String getNewsRC()
           
static java.lang.String getRootDir()
           
static long getStartTime()
           
static java.lang.String getSubscriptionFile()
           
static java.lang.String getVersionString()
           
static java.lang.String getXMLVersion()
           
protected static void init()
          Initialize Stringer.
static java.util.Properties loadProperties(java.lang.String propertyFile)
          Load a properties file.
static void main(java.lang.String[] argv)
          Set up the tree, the views, and display it all
static void printUsage()
           
static java.lang.String xmlWrapper(java.lang.String xml)
          Wrap a string in our XML headers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger

DEFAULT_PARSER_NAME

public static final java.lang.String DEFAULT_PARSER_NAME
Default parser name.

See Also:
Constant Field Values

configDir

protected static java.lang.String configDir

newsrcFile

protected static java.lang.String newsrcFile

newnewsFile

protected static java.lang.String newnewsFile

startTime

static final long startTime

VersionProperties

static java.util.Properties VersionProperties
Constructor Detail

Main

public Main()
Method Detail

getNewsRC

public static java.lang.String getNewsRC()

getNewNewsFile

public static java.lang.String getNewNewsFile()

getBackupNewNewsFile

public static java.lang.String getBackupNewNewsFile()

getXMLVersion

public static java.lang.String getXMLVersion()

getDocType

public static java.lang.String getDocType()

getStartTime

public static long getStartTime()

getRootDir

public static java.lang.String getRootDir()

getBackupDir

public static java.lang.String getBackupDir()

getFeedDir

public static java.lang.String getFeedDir()

getSubscriptionFile

public static java.lang.String getSubscriptionFile()

getBackupSubscriptionFile

public static java.lang.String getBackupSubscriptionFile()

getBackupFeedRCFile

public static java.lang.String getBackupFeedRCFile()

getVersionString

public static java.lang.String getVersionString()

getBuildNumber

public static java.lang.String getBuildNumber()

getBuildDate

public static java.lang.String getBuildDate()

init

protected static void init()
                    throws java.lang.Exception
Initialize Stringer. This method is to be called exactly one time to initialize the Stringer program.

Throws:
UnsupportedLookAndFeel - if the designated PLAF class cannot be found.
java.io.IOException - if the Stringer home directory structure cannot be built.
java.lang.Exception

xmlWrapper

public static java.lang.String xmlWrapper(java.lang.String xml)
Wrap a string in our XML headers.

Parameters:
xml - encoded in a string.
Returns:
the input string wrapped in a standard rdf:RDF (RSS 1.0) header.

loadProperties

public static java.util.Properties loadProperties(java.lang.String propertyFile)
Load a properties file.


main

public static void main(java.lang.String[] argv)
                 throws java.lang.Exception
Set up the tree, the views, and display it all

java.lang.Exception

printUsage

public static void printUsage()


Copyright © R. Kevin Cole. All Rights Reserved.