| Home >> All >> javatools >> [ util Javadoc ] |
| | javatools.util.plugin.* (4) | | javatools.util.test.* (3) |
javatools.util: Javadoc index of package javatools.util.
Package Samples:
javatools.util.test: Utility classes.
javatools.util.plugin: Utility classes.
Classes:
Props: An extended version of Properties class. It allows reading Properties files from the classpath or resource file. It uses ClassLoader.getResourceAsStream to find a properties file, so that means it either has to be on the classpath or bundled into the jar. It is intended that you only pass a single string to find the properties like "foo". That will cause Props to search for a file called foo.properties. The directory it searches in will be by default the "res/" directory. That means that it will search your classpath or jar file for a file res/foo.properties. If you run your software in different ...
JQueue: Implements a regular queue. The only unusual thing is you can delete things from the middle of the queue efficiently by supplying the QueueKey which is returned by put(). In terms of implementation we use a Dictionary Hashtable instead of a perhaps more traditional vector with round-robin pointers. The benefit here is efficient implementation of the remove functionality. It also happens to be a really easy way to implement queues in general. The way it works is that the dictionary is used as a sparse array. The upper and lower bounds of the sparse array keeping growing up and up towards infinity. ...
FileLog: A class for logging context specific messages to a file. Logged messages include the context (typically a class or subsystem), a date-time stamp a severity and supplied text. Entries are of the form: yyyy.MM.dd HH:mm:ss : If the system property "debugOn" is set to TRUE the messages with a severity of DEBUG will be logged. If the property is missing or is FALSE then DEBUG messages will be ignored.
Cache: General purpose cache class. Acts basically like a weak reference dictionary except that it also returns null when asked to find an item whose use-by date has expired. It works with two main data structures: A Dictionary which provides fast access into the cache, and a Queue which keeps track of the least recently used items in the cache so that old items can be removed and limit the cache to a bounded size. Modified: 8th March 2003 11:41
SubstituteVariable: A utility class for substituting parts of Strings e.g. SubstituteVariable("${xx} brown fox jumped over ${xx} lazy dog", "${xx}", "the", 1); =>> "the quick brown fox jumped over ${xx} lazy dog" SubstituteVariable("${xx} brown fox jumped over ${xx} lazy dog", "${xx}", "the"); =>> "the quick brown fox jumped over the lazy dog"
OrdinalPostfix: This class returns the bit that you tag onto the end of number. e.g. if you pass in the number "1" it will return "st", as in 1st. If you pass in "2" it will return "nd", as in "2nd". etc. Yes, the name is pretty wierd, but what can you name something like this?
Resetable: Any object that can be "Reseted" implements this. The meaning of "reset" is rather ill-defined, but usually means to bring itself back to a starting state, to clear its caches and/or to re-read configuration files.
Registry: The Registry class provides is used to load the native library DLL, as well as a placeholder for the top level keys, error codes, and utility methods.
Validator: It's like an "interface" between a centralized data manager and different "clients". It should be used to check whether data is changed.
Reflect: Maps reflection onto classes, that is maps strings in class methods. This is left uncommented, sorry, I cannot understand everything.
FormattedInteger: It's a java.lang.Integer, except in the fact it returns its "toString" value in a formatted way.
FormattedNumber: It's a java.lang.Number, except in the fact it returns its "toString" value in a formatted way.
FormattedDate: It's a java.util.Date, except in the fact it returns its "toString" value in a formatted way.
FormattedLong: It's a java.lang.Long, except in the fact it returns a "toString" value in a formatted way.
Clippable: It is an interface to be used in things that can be clipped (i.e. cut, copied, pasted).
Clipboard: It represents a simple clipboard. Now it can contains several elements at a time.
ScriptCatcher: It's a class to catch text from a script file and to divide it into commands.
RunningRunnable: An interface that contains a simple void with no parameters method.
ArgumentProcessor: It's a class useful to process arguments passed via command line.
CommonRuntimeException: A base class for other types of Runtime exceptions.
IteratorToEnumeration: Uses an Iterator object as an Enumeration object.
NullUtils: Contains some functions for use with null values.
ArrayComparator: Compares an array of objects, object by object.
| Home | Contact Us | Privacy Policy | Terms of Service |