RbUtils 0.13

org.ktc.rbutils.rb.content
Class RbContentListerUtility

java.lang.Object
  extended by org.ktc.rbutils.rb.AbstractUtility
      extended by org.ktc.rbutils.rb.content.RbContentListerUtility
All Implemented Interfaces:
Utility

public class RbContentListerUtility
extends AbstractUtility

Command line utility for ResourceBundle Content List.

Since:
RbUtils 0.11
Version:
$Revision: 1.1 $
Author:
ktcguru

Field Summary
 
Fields inherited from class org.ktc.rbutils.rb.AbstractUtility
cmdLine, ERROR_MSG_EXTENSION_NBR, ERROR_MSG_ROOT_NBR, internalArgs, MSG_MISSING_REQUIRED_OPTION, OPTION_EXTENSION, OPTION_FILE, OPTION_LOG, OPTION_ROOT, options, REQUIRED_HEADER, root, SEP_LOG_OPTION, taskName
 
Constructor Summary
protected RbContentListerUtility(String[] args, PrintWriter pw)
          Creates a new instance of ContentListerUtility.
 
Method Summary
protected  void internalUsage()
          Display the usage of the utility.
static void main(String[] args)
          Lists the content of a ResourceBundle.
protected static int mainNoExit(String[] args, PrintWriter writer)
          Launches the utility.
 void parseParameters()
          Parses the internalArgs field according to the options field.
protected  int process()
          Launches the utility.
 
Methods inherited from class org.ktc.rbutils.rb.AbstractUtility
clone, getCommonOptions, getExtension, getFilesToBeProcessed, getLoggers, getRootDir, getUniqueDir, getUniqueOptionValue, parse, usage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RbContentListerUtility

protected RbContentListerUtility(String[] args,
                                 PrintWriter pw)
Creates a new instance of ContentListerUtility.

Parameters:
args - the arguments to be passed to the utility.
pw - the Writer to print into.
Method Detail

process

protected int process()
               throws Exception
Launches the utility. Do not display anything. Call method should catch parse exceptions and display messages to user.

Returns:
the number of errors that occur during the generation (this does not count arguments parse error).
Throws:
Exception - the arguments to be passed to the utility.

parseParameters

public void parseParameters()
Parses the internalArgs field according to the options field.

Specified by:
parseParameters in interface Utility
Overrides:
parseParameters in class AbstractUtility

internalUsage

protected void internalUsage()
Display the usage of the utility.


main

public static void main(String[] args)
Lists the content of a ResourceBundle. See RbUtils documentation.

If an error occurs on initialization, prints usage.

Parameters:
args - the arguments to be passed to the utility.

mainNoExit

protected static int mainNoExit(String[] args,
                                PrintWriter writer)
Launches the utility. Acts like the main method but does not exit.

Parameters:
args - the arguments to be passed to the utility.
writer - the Writer to be used to print messages.
Returns:
the number of error detected during generation.

Back to the RbUtils Home Page

Copyright © 2005-2009 RbUtils Project. All Rights Reserved.