Package kiwi.util

Utility classes, including sorters, resource loaders and managers, command processors, and other miscellany.

See:
          Description

Interface Summary
CommandProcessor Helper class for the CommandDispatcher.
ListConsumer Interface for receiving a list of objects from another object.
LoggingEndpoint Logging endpoint interface.
ProgressObserver This class defines the behavior of an object that wishes to receive periodic updates on the progress of a lengthy task.
Sequence An extension of Enumeration that allows rewinding to the first component and retrieval of the number of items in the collection.
 

Class Summary
ArraySequence An implementation of Sequence for wrapping arrays.
Assert Assertion support.
BooleanHolder A mutable holder for a boolean value.
CommandDispatcher A class that makes use of the reflection API to implement a generic, reusable, and flexible command processor.
CommandLineParser A class that does approximately what getopt() does in C.
CompressedResourceLoader A utility class containing methods for retrieving compressed application resources; these resources typically reside within a JAR file among the classes that make up an application.
Config Configuration object.
Counter An integer counter object.
DirectoryPath A convenience class for maintaining a directory path (that is, an ordered list of directories).
DoubleHolder A mutable holder for a double value.
FileLoggingEndpoint An implementation of LoggingEndpoint for ordinary files.
FloatHolder A mutable holder for a float value.
IntegerHolder A mutable holder for an int value.
KiwiUtils This class consists of several convenience routines.
MergeSort An implementation of MergeSort, which can be subclassed to provide a comparator.
NullLoggingEndpoint An implementation of LoggingEndpoint that serves as a "bit bucket," discarding all messages.
RawLoggingEndpoint An implementation of LoggingEndpoint for standard error.
ReplacementClassLoader A custom class loader that can be used to selectively replace core classes.
ResourceLoader A utility class containing methods for retrieving application resources; these resources typically reside within a JAR file among the classes that make up an application.
ResourceManager This class provides base functionality for a resource manager; it includes support for the caching of images and sounds, and provides convenience methods for retrieving other types of resources.
StringHolder A mutable holder for a String value.
StringMergeSort A trivial extension of MergeSort for sorting strings.
StringUtils A class of miscellaneous string utilities.
TaggedObject An object-id or object-tag pair.
Task This class represents an asynchronous task whose progress can be tracked by a ProgressObserver.
VectorSequence An implementation of Sequence for wrapping Vectors.
 

Exception Summary
AssertionException An assertion exception.
InvalidCommandLineArgumentException An error throwable by the CommandLineParser class.
MissingCommandLineArgumentException An error throwable by the CommandLineParser class.
NotImplementedException General-purpose "not implemented" exception.
ResourceNotFoundException An exception that is thrown by ResourceManager to signify that a resource could not be located.
 

Package kiwi.util Description

Utility classes, including sorters, resource loaders and managers, command processors, and other miscellany.