Package com.cometway.util

This package contains a variety of models, reference implementations, and tools which are useable for many common types of activities.

See:
          Description

Interface Summary
ClassFactoryInterface This interface describes a method for creating new class instances.
FlushInterface  
ICommandParser classes that might provide a command string parse method implement ICommandParser
IExceptionHandler This is useful when you need to notify another object of an exception which has taken place.
IHeap IHeap is an interface for a heap
IHeapItem This interface defines a HeapItem.
ISchedulable A class can implement ISchedulable when it wants to be scheduled for execution by a Scheduler.
ISchedule A class can implement ISchedule when it wants to represent a list of scheduled times.
IScheduleChangeListener A class can implement IScheduleChangeListener when it wants to be notified about changes to the schedule of an IScheduleable object.
IScheduler A class can implement IScheduler when it wants manage objects implementing the ISchedulable interface.
ReporterInterface This is an interface for reporting agent progress and errors.
 

Class Summary
Assert This class provides a suite of methods to perform tests.
Base64Encoding This helper class contains the MIME/64 encoding and decoding methods when dealing with password authentication.
BinaryHeap BinaryHeap is a mostly vanilla implementation of the CLR binary heap (albeit an object-oriented implementation), with the addition of a Hashtable mapping IHeapItems to their respective indices in the heap Vector.
ByteTools  
DateTools Set of utilities for manipulating date info.
DefaultClassFactory This default implementation of ClassFactoryInterface uses Class.forName() and Class.newInstance() to resolve and instantiate the specified class.
DevNullReporter This implementation of ReporterInterface does absolutely positively nothing.
ExecuteCommand This method extends com.cometway.util.KMethod and implements the Runnable interface, which allows this KMethod to be executed by a PooledThread from a ThreadPool or another Thread.
InputStreamReaderKMethod This method extends com.cometway.util.KMethod and implements the Runnable interface, which allows this KMethod to be executed by a PooledThread from a ThreadPool or another Thread.
IntegerPair This is a Pair object that specializes in Integers (simple type int).
jGrep This class provides static methods for quick and easy regular expression matching and replacement.
KMethod KMethod is a wrapper for java.lang.reflect.Method.
LoggingAPIReporter Each ReporterInterface method call is output using on of the appropriate Logging API methods defined by java.util.logging.Logger.
MapComparator  
ObjectSerializer This class has static methods that serialize and unserialize Objects to and from byte[] arrays.
Pair This class implements a tuple.
PooledThread This is a Thread used by the ThreadPool class.
Queue This is a jdk1.1/1.0 implementation of a Queue data object.
Schedule This class implements ISchedule.
ShellCommandAgent This agent executes a shell command and outputs the result.
StringScrambler This class provides static methods to obsfucate Strings using bitwise shifting and radix mapping.
StringTools A set of utilities for manipulating strings.
SystemExitAgent This agent calls System.exit() with the specified exit code (0 by default).
SystemReporter Each ReporterInterface method call is output using System.out.println or System.err.println exactly once.
ThreadPool This class starts and stops a pool of PooledThreads.
TimeStampedReporter Prints all output with the time and date each report happened.
 

Exception Summary
ClassFactoryException This exception is thrown by ClassFactoryInterface.createInstance when there is a problem.
EmptyHeapException This exception is thrown when a Heap is accessed but is empty.
 

Package com.cometway.util Description

This package contains a variety of models, reference implementations, and tools which are useable for many common types of activities. This includes models for scheduling, heaps, command parsing, and property storage, and tools for using Dates, Strings, Integers, Vectors, versions, Runtime, Queues, timers, and assertions.