| By: | Abdul Habra |
| Email: | ahabra@yahoo.com |
| URL: | www.tek271.com |
| Version: | 1.1 |
| Date: | 2008.01.02 |
TECUJ Java Docs.
tecuj.2008.01.02.zip: Source, JAR, JavaDocs.
|
Old versions Scroll to the end of this page to see change details |
||
| Version | Date | Download |
|---|---|---|
| 1.01 | 2007.09.21 | tecuj.2007.09.21.zip |
| 1.0 | 2007.09.15 | tecuj.2007.09.15.zip |
| 0.19 | 2006.08.16 | tecuj.2006.08.16.zip |
| 0.18 | 2006.06.22 | tecuj.2006.06.22.zip |
| 0.17 | 2006.06.14 | tecuj.2006.06.14.zip |
| 0.16 | 2005.11.15 | tecuj.2005.11.15.zip |
Technology Exponent Common Utilities for Java (TECUJ) is a Java library that makes common programming tasks easier. TECUJ is a free software with a GNU LGPL license. Examples of things made easier by the library include:
TECUJ aspires to achieve the following:
TECUJ uses the following libraries (which are included in the tecuj.x.zip download):
TECUJ should run with any version of Java 1.4 or higher. To use this library, just make sure that Tek271Util.jar (and the other dependent jars) are in your classpath.
The following is a list of classes and a brief description of each. The green background indicates the start of a new package.
| 1 | interface ICallback | public interface | package com.tek271.util |
| An interface that allows executing a callback method with a parameter. | |||
| 2 | interface IExecutable | public interface | package com.tek271.util |
|
An interface that allows executing a method and returning a success/failed code. |
|||
| 3 | class Printf | public | package com.tek271.util |
| Different overloaded printf methods. Not as extensive as Java 1.5. Very handy for building dynamic SQL statements or error messages. | |||
| 4 | class CacheItem | package com.tek271.util.cache | |
| implements com.tek271.util.cache.ICacheItem | |||
| Encapsulates an item in the cache. Note that this class has a package scope and cannot be accessed from outside the package. | |||
| 5 | class CacheStore | package com.tek271.util.cache | |
| implements com.tek271.util.cache.ICacheStore | |||
|
Encapsulates a caches store with a LRU and TTL removal policy, all methods of this class are synchronized. A store is uniquly identified by its name. Each store has a maximum size of items and a Time-To-Live (TTL) in seconds for its items. To create a cache store use the StoreFactory.createStore() static method. |
|||
| 6 | interface ICacheItem | interface | package com.tek271.util.cache |
| An interface to represent a cached item. | |||
| 7 | interface ICacheStore | public interface | package com.tek271.util.cache |
| An interface to represent a cache store. | |||
| 8 | class StoreFactory | public | package com.tek271.util.cache |
|
Contains static methods to create/access/remove a cache store. Cache stores are
keyed by either User:StoreName or just StoreName. Note that this key is global
per JVM, i.e. In the same JVM, two classes can access the same cache store by the
same key value.
Warning 1: When two classes access the same store/key, one can modify a
cached value that the other may use. Cached objects are available to all classes in
the JVM. If you are concerned about this issue, store only immutable objects in the
store. |
|||
| 9 | class AbstractKey | public abstract | package com.tek271.util.cache.key |
| implements com.tek271.util.cache.key.IKey, java.io.Serializable | |||
| Implements th IKey interface, key classes should extend this class and implement the methods: getPart(int), setPart(int, String), compare(IKey, IKey). | |||
| 10 | interface IKey | public interface | package com.tek271.util.cache.key |
| implements java.lang.Comparable, java.util.Comparator | |||
| Encapsulate a key to a cache store. The key can consist of 1 or more string parts. | |||
| 11 | class Key1 | public | package com.tek271.util.cache.key |
| extends com.tek271.util.cache.key.AbstractKey | |||
| A key that consists of one part. | |||
| 12 | class Key2 | public | package com.tek271.util.cache.key |
| extends com.tek271.util.cache.key.AbstractKey | |||
| A key that consists of two parts. | |||
| 13 | class KeyN | public | package com.tek271.util.cache.key |
| extends com.tek271.util.cache.key.AbstractKey | |||
| A key that consists of N parts, where N is determined when you create an instance of KeyN. | |||
| 14 | class CircularFifoOfLong | public | package com.tek271.util.collections |
|
Code adapted from org.apache.commons.collections.buffer.CircularFifoBuffer.
CircularFifoBuffer is a first in first out buffer with a fixed size that
replaces its oldest element if full.
The removal order of a The add(Object), remove() and get() operations all perform in constant time. All other operations perform in linear time or worse.
Note that this implementation is not synchronized. The following can be
used to provide synchronized access to your Buffer fifo = BufferUtils.synchronizedBuffer(new CircularFifoBuffer()); |
|||
| 15 | class CollectionUtility | public | package com.tek271.util.collections |
| extends CollectionUtils | |||
| Different collections utility methods. Extends the Jakarta CollectionUtils class. | |||
| 16 | class NotifyingCollection | public | package com.tek271.util.collections |
| implements java.util.Collection | |||
| A collection implementation that notifies when items are added or deleted. It decorates another collection be making it notifying. | |||
| 17 | class ArrayUtilities | public | package com.tek271.util.collections.array |
| extends ArrayUtils | |||
Generic array methods including different overloaded
indexOf() and concat() methods.
|
|||
| 18 | class AbstractGraphStructuredStackNode | public abstract | package com.tek271.util.collections.graph |
| implements com.tek271.util.collections.graph.IGraphStructuredStackNode | |||
| Implements IGraphStructuredStackNode which abstracts a Graph-structured Stack (GS) node. A GS is a directed acyclic graph where each directed path is considered a stack. You can think of a GS as a structure similar to a tree structure with the exception that a node can have more than one parent. See wikipedia for more info on GS. | |||
| 19 | class GraphStructuredStackNode | public | package com.tek271.util.collections.graph |
| extends com.tek271.util.collections.graph.AbstractGraphStructuredStackNode | |||
| A node that has a key and contents. | |||
| 20 | class GssUtils | public | package com.tek271.util.collections.graph |
| Helper static methods for graph handling. | |||
| 21 | class GssUtils.GraphEntry | public static | package com.tek271.util.collections.graph |
| Encapsulates (key, contents, parentKey) of a graph entry, a list of this object can be used to construct a graph using the GssUtils.createGraph() method. | |||
| 22 | interface GssUtils.IGssNodeFactory | public static interface | package com.tek271.util.collections.graph |
| provides a method to create a IGraphStructuredStackNode object | |||
| 23 | interface IGraphNode | public interface | package com.tek271.util.collections.graph |
| Abstracts a node in a graph. The node has a key and contents. This interface does not enforce any restrictions on the keys or contents. | |||
| 24 | interface IGraphStructuredStackNode | public interface | package com.tek271.util.collections.graph |
| implements com.tek271.util.collections.graph.IGraphNode | |||
|
Abstracts a Graph-structured Stack (GS) node. A GS is a directed acyclic graph where
each directed path is considered a stack. You can think of a GS as a structure
similar to a tree structure with the exception that a node can have more than
one parent.
See wikipedia
for more info on GS.
Notice that this interface extends the IGraphNode interface. Each node consists of the following:
|
|||
| 25 | class MapOfGraphNode | public | package com.tek271.util.collections.graph |
| extends java.util.HashMap | |||
| A map of IGraphNode objects. The key of the map is the node's key, and the value is the node itself. | |||
| 26 | interface ILongIterator | public interface | package com.tek271.util.collections.iterator |
| implements java.util.Iterator | |||
| 27 | class NotifyingIterator | public | package com.tek271.util.collections.iterator |
| implements java.util.Iterator | |||
| Decorate an Iterator such that remove operations will cause a callback through aRemoveNotifier.execute(). | |||
| 28 | class ListOfString | public | package com.tek271.util.collections.list |
| extends java.util.ArrayList | |||
Encapsulates a list whose items are String objects. This class
extends the ArrayList class. Some interesting features are:
|
|||
| 29 | class RowList | public | package com.tek271.util.collections.list |
| implements java.io.Serializable | |||
|
A
A
The
For the
When a |
|||
| 30 | class RowListComparator | package com.tek271.util.collections.list | |
| implements java.util.Comparator, java.io.Serializable | |||
RowListComparator implements the Comparator interface
and provides the compare method to compare the rows in a RowList based on the column
and direction flag arrays passed into it.
Note that the class has a default package scope, and is not accessiable outside its package. |
|||
| 31 | class SingleRowList | public | package com.tek271.util.collections.list |
| extends com.tek271.util.collections.list.RowList | |||
| 32 | class MapOfString | public | package com.tek271.util.collections.map |
| extends java.util.HashMap | |||
| A map where both keys and values are strings. When you construct an object of this class you can specify if you want it to be case sensetive or not. Using the case insensetive option will not change the case of either keys or values. Additionally, using the setListOrder() method you can have the class keep track of the order in which items where added to the map. | |||
| 33 | class MapOfStringMV | public | package com.tek271.util.collections.map |
| extends com.tek271.util.collections.map.MapOfString | |||
| A map of string which can have multiple values for the same key. | |||
| 34 | class MapUtility | public | package com.tek271.util.collections.map |
| extends MapUtils | |||
| Static utility map-related methods. | |||
| 35 | class MapValue | package com.tek271.util.collections.map | |
| implements java.util.Map.Entry | |||
|
When running in a case insensitive mode, we need to maintain the original key in order
to return it to the caller if needed. This class represent a value in a map with
its original key. Used only in case insensitive mode.
Note that the class has a default package scope, and is not accessiable outside its package. |
|||
| 36 | class MapValueMV | package com.tek271.util.collections.map | |
| extends com.tek271.util.collections.map.MapValue | |||
|
n * Encapsulate a multi-value value for the MapOfStringMV class.
Note that the class has a default package scope, and is not accessiable outside its package. |
|||
| 37 | class OrderedMapOfTimestamp | public | package com.tek271.util.collections.map |
| extends LinkedMap | |||
| A map whose values are the time stamp of addition to the map. The elements in the map are ordered by their insertion order. | |||
| 38 | class TimedLruMap | public | package com.tek271.util.collections.map |
| extends java.util.LinkedHashMap | |||
| A map with a maximum size and time-to-live for ite entries. When trying to add to the map which reached its max size, the Least Recently Used (LRU) item is removed. Items that have been in the map for a period greater than the time-to-live period will be removed when trying to use any map-related method, in-other-words, methods of the Object class do not cause the removal of expired entries. This class extends java.utils.LinkedHashMap with accessOrder feature. | |||
| 39 | class NotifyingSet | public | package com.tek271.util.collections.set |
| extends com.tek271.util.collections.NotifyingCollection | |||
| implements java.util.Set | |||
| A set implementation that notifies when items are added or deleted. It decorates another set be making it notifying. | |||
| 40 | class AbstractTree | public abstract | package com.tek271.util.collections.tree |
| extends com.tek271.util.collections.graph.AbstractGraphStructuredStackNode | |||
| implements com.tek271.util.collections.tree.ITree | |||
Implements the ITree interface. Classes that need to implement ITree should extend
this class and provide implementation for its abstract methods. The abstract
methods of this class are:abstract public Object getContents() ; abstract public void setContents(final Object aContents); abstract public boolean isEqualContents(final Object aContents); abstract public Object getKey(); abstract public void setKey(final Object aKey); abstract public boolean isEqualKey(final Object aKey); |
|||
| 41 | interface ITree | public interface | package com.tek271.util.collections.tree |
| implements com.tek271.util.collections.graph.IGraphStructuredStackNode | |||
Defines the interface of a generic tree node. A tree node consists of
|
|||
| 42 | class TreeOfString | public | package com.tek271.util.collections.tree |
| extends com.tek271.util.collections.tree.AbstractTree | |||
| A Tree structure of string objects. This tree has the same object for key and contents. | |||
| 43 | class BlobUtil | public | package com.tek271.util.db |
|
Utility methods to handle Blobs in db tables. Note that:
|
|||
| 44 | class ClobUtil | public | package com.tek271.util.db |
|
Utility methods to Clobs in db tables. Note that:
|
|||
| 45 | class DBRowList | public | package com.tek271.util.db |
| extends com.tek271.util.collections.list.RowList | |||
Extends a RowList by adding JDBC-related methods,
including the ability to construct from a ResultSet.
|
|||
| 46 | class DbUtil | public | package com.tek271.util.db |
|
Generic database library methods. The motivation for creating this library:
All the methods are:
Some interesting features are:
Example: ILogger log= SimpleConsoleLogger.LOGGER; // log errors to console
String driver= "oracle.jdbc.driver.OracleDriver";
String url= "jdbc:oracle:thin:@server1.tek271.com";
String user= "coolDude";
String password= "password";
Connection con= DbUtil.getConnectionJdbc(log, driver, url, user, password);
if (con==null) return; // error happened and logged
String sql= "select name from employee where id=5";
String name= DbUtil.readCellAsString(log, sql, con);
if (name==null) {
// error happened and logged
DbUtil.close(log, con);
return;
}
System.out.println("Name is " + name);
DbUtil.close(log, con);
In a typical application you may put the code to open connection in a
separate method. Note the simplification here over standard JDBC calls;
you do not have to do try/catch, and that logging is done
automatically.
|
|||
| 47 | class SqlSelect | public | package com.tek271.util.db |
| Simplifies building Select SQL statement strings. When you have long SQL select statements that take many lines, this class will be very helpful. | |||
| 48 | class SqlWhere | public | package com.tek271.util.db |
Build the where clause for
an SQL statement. Helps avoiding string concatenations and worrying about quoting
string values.
|
|||
| 49 | class SqlWrite | public | package com.tek271.util.db |
|
Build an INSERT or an UPDATE SQL string. This is specially helpful to avoid repeating
sql code for insert and update on the same table.
Example: SqlWrite q = new SqlWrite(SqlWrite.UPDATE, "employee");
q.setWhere("age<18");
q.addColumn("destination", "Hawaii", true); // true: surround Hawaii by single quotes
q.addColumn("vacationDays", 10);
System.out.println(q.toString());
The above code will generate the following SQL statement: UPDATE employee SET destination='Hawaii',vacationDays=10 WHERE age<18 Now, to generate an INSERT statement on the same table and columns, all we need is to call: q.setQueryType(SqlWrite.INSERT); System.out.println(q.toString()); Which will generate: (notice that we did not have to repeat column definitions) INSERT INTO employee (destination,vacationDays) VALUES ('Hawaii',10) WHERE age<18
Although this was a simple example that may not justify using the
|
|||
| 50 | class TransUtil | public | package com.tek271.util.db |
| Database transactions utilities, including static methods for commit, rollback, setAutoCommit, and a method that executes several db operations as one transaction. | |||
| 51 | class ExceptionUtil | public | package com.tek271.util.exception |
Generic static methods to manage exceptions, including:
|
|||
| 52 | class LoggedException | public | package com.tek271.util.exception |
| extends java.lang.Exception | |||
| An exception that logs error messages, it will also log the stack trace. | |||
| 53 | class Email | public | package com.tek271.util.internet |
Simplifies sending SMTP email. Its static methods send() and
sendAsynchronous() are very easy to use and send email.
Requires javax.mail. Can be downloaded at:
|
|||
| 54 | class EmailSender | public | package com.tek271.util.internet.email |
| Send email using the SMTP/SMTPS prtocol. I used the smtpsend.java which comes with Java Mail API demo as a starting point for creating this class. The authors of smtpsend.java are Max Spivak and Bill Shannon. | |||
| 55 | class EmailUtils | public | package com.tek271.util.internet.email |
| Email helper static methods. | |||
| 56 | class ColorGradient | public | package com.tek271.util.internet.html |
| Given two colors and a range, get the gradient color for each step, in other words, get the interpolation of color as we transition in the range. | |||
| 57 | class ComboBox | public | package com.tek271.util.internet.html |
| Build the html for a combo box. | |||
| 58 | class ErrorList | public | package com.tek271.util.internet.html |
| Collect a list of errors which can be displayed later in one page. | |||
| 59 | class Grade | public | package com.tek271.util.internet.html |
| Display a list of grades (e.g. from 1 to 10) with each grade displayed as a link. Background colors will gradually change from minium grade to max grade | |||
| 60 | class HtmlTable | public | package com.tek271.util.internet.html |
|
Generates an HTML table. To use this class,
|
|||
| 61 | interface HtmlTable.ICellCallback | public static interface | package com.tek271.util.internet.html |
| Client applications should implement this interface to provide the text to be displayed at each cell in the table. | |||
| 62 | class HtmlUtil | public | package com.tek271.util.internet.html |
|
Static methods to build different HTML tags and elements.
Supported elements include:
<a>, <b>, <br>, <h>, <i>, <img>, <p>, Check box, Font color,
Numbered lines, ...
The purpose of this class is to simplify the creation of HTML elements in Java code. |
|||
| 63 | class Paginator | public | package com.tek271.util.internet.html |
| Generate pagination links that could be used to navigate to different search results. | |||
| 64 | class TableUtils | public | package com.tek271.util.internet.html |
| Utility methods for HTML tables, including the creation of <td> and <th> elements. | |||
| 65 | class Compress | public | package com.tek271.util.io |
| 66 | class ConfigFile | public | package com.tek271.util.io |
| implements java.lang.Cloneable | |||
|
Encapsulates a configuration file interface. This is a better handler
for properties files that can support inline comments and grouping.
The user can (optionally) specify in the file what is the equality character and the comment start character. For example: _equal=>] _comment=%If the above two lines are the first two lines in the file, values will be separated from their names by the > or ] char, while comments will start with %. The default Equal chars are = or : while the default Comment chars are ; or #. |
|||
| 67 | class FileIO | public | package com.tek271.util.io |
| Generic file i/o methods for reading, writing, listing, and finding files. | |||
| 68 | class Net | public | package com.tek271.util.io |
| 69 | class AbstractBufferedLogger | public abstract | package com.tek271.util.log |
| implements com.tek271.util.log.ILogger | |||
| Buffer logging messages. Remember to call flush when you are done with objects of this class. Implementing classes must provide logNow() implementation. | |||
| 70 | class AbstractLogger | public abstract | package com.tek271.util.log |
| implements com.tek271.util.log.ILogger | |||
| Implements the ILogger interface method log(level, msg). This makes it easier for classes that implement the ILogger interface. | |||
| 71 | class BufferedLog4jAdapter | public | package com.tek271.util.log |
| extends com.tek271.util.log.AbstractBufferedLogger | |||
| A buffered logger that uses log4j. Remember to call flush when you are done with objects of this class. Note that this class extends AbstractBufferedLogger which implements the ILogger interface, so you can use this class whereever ILogger is expected. | |||
| 72 | class ClassLogger | public | package com.tek271.util.log |
|
Provide info/debug/warn/error methods for a client class |
|||
| 73 | class CommonsLoggingAdapter | public | package com.tek271.util.log |
| extends com.tek271.util.log.AbstractLogger | |||
|
Implements the ILogger interface using the commons logging logger. |
|||
| 74 | interface ILogger | public interface | package com.tek271.util.log |
Interface of a generic logger. Used to create logging classes that implement this
interface. The interface has only one method log() that
is overloaded once. Some classes (E.g. DbUtil) in this
library use this interface to log error message.
To use this interface you should implement it in one of your classes and pass an object of your class. |
|||
| 75 | class ListLogger | public | package com.tek271.util.log |
| extends com.tek271.util.log.AbstractLogger | |||
| An ILogger implementation that Decorates another ILogger by manitaining a list of logged events. The list can be accessed at any time. Remember that if you dump the list contents to some output device, you should clear it afterwords. | |||
| 76 | class ListLogger.LogItem | public | package com.tek271.util.log |
| a log item | |||
| 77 | class Log4jAdapter | public | package com.tek271.util.log |
| extends com.tek271.util.log.AbstractLogger | |||
|
Implements the ILogger interface using Log4j |
|||
| 78 | class MultiThrowable | package com.tek271.util.log | |
| extends java.lang.Throwable | |||
|
A throwable that can have multiple stack traces. |
|||
| 79 | class PerformanceLog | public | package com.tek271.util.log |
| Log timing for different events in the JVM. The caller logs the time of an event by name. Accessing this class is throu the singlton PerformanceLog.LOG. The method that will be called the most is PerformanceLog.LOG.putNow(key, startTime) | |||
| 80 | class PerformanceLog.LogEntry | public static | package com.tek271.util.log |
| Store info about a single operation logging times | |||
| 81 | class SimpleConsoleLogger | public | package com.tek271.util.log |
| extends com.tek271.util.log.AbstractLogger | |||
|
Simple logger that implements ILogger and writes to console. Usually used for debugging.
The static member |
|||
| 82 | class AbstractTokenizer | abstract | package com.tek271.util.parse |
This is an abstract class that is implemented by the Tokenizer class.
The class defines the following public methods:
The class also defines the following public boolean fields:
|
|||
| 83 | class FileTokenizer | public | package com.tek271.util.parse |
| extends com.tek271.util.parse.Tokenizer | |||
|
|||
| 84 | class Token | public | package com.tek271.util.parse |
The Tokenizer class produces Token objects.
This is a simple data structure that contains the value, type, line, and column
of the token. The token type can be one of:
Keyword, String, Separator, Literal, White Space, Comment, New Line, and Error.
|
|||
| 85 | class Token.List | public static | package com.tek271.util.parse |
| Define a list of tokens. | |||
| 86 | class Tokenizer | public | package com.tek271.util.parse |
| extends com.tek271.util.parse.AbstractTokenizer | |||
A generic tokenizer. To use it:
|
|||
| 87 | class SelectParser | public | package com.tek271.util.parse.sql |
Define a parser that parses a Select Sql statement.
To use it:
|
|||
| 88 | class ReflectUtil | public | package com.tek271.util.reflect |
| Utility methods that handle dynamic class introspections | |||
| 89 | class BeanAccessor | public | package com.tek271.util.reflect.accessors |
| 90 | class FieldAccessor | public | package com.tek271.util.reflect.accessors |
| 91 | class MethodAccessor | public | package com.tek271.util.reflect.accessors |
| 92 | class AbstractBeanBuilder | public abstract | package com.tek271.util.reflect.builder |
| Dynamically creates a bean that implements a given interface and back its property values using the IBeanValueAccessor interface. | |||
| 93 | interface AbstractBeanBuilder.IBeanValueAccessor | public static interface | package com.tek271.util.reflect.builder |
| An interface that must be implemented by subclasses of AbstractBeanBuilder. It provides the mechanism to get and set the bean property values using the name of the property. | |||
| 94 | class BeanFromMapBuilder | public | package com.tek271.util.reflect.builder |
| extends com.tek271.util.reflect.builder.AbstractBeanBuilder | |||
Dynamically creats a bean that implements a given interface and back its property
values using a Map object. An example which uses this class:
import java.util.*;
import com.tek271.util.collections.map.MapUtility;
...
public interface IPerson {
String getName();
void setName(String name);
Integer getAge();
void setAge(Integer age);
String getSsn();
void setSsn(String ssn);
}
private static final Object[][] ARRAY = {
{"name", "abdul"},
{"age", new Integer(40)},
{"ssn", "123456789"},
};
public static final Map MAP= MapUtility.toMap(ARRAY);
public void testSetProperties() throws Exception {
IPerson person= (IPerson) BeanFromMapBuilder.create(IPerson.class, MAP);
System.out.println(person.getName()); // abdul
System.out.println(person.getAge()); // 40
System.out.println(person.getSsn()); // 123456789
person.setName("aaa");
System.out.println(person.getName() ); // aaa
}
|
|||
| 95 | class Encryption | public | package com.tek271.util.security |
| A simple encryption program to encrypt and decrypt strings using a given password. It helps encrypting password columns in db tables. Uses DES algorithm. | |||
| 96 | class StringComparator | public | package com.tek271.util.string |
| implements java.util.Comparator, java.lang.Comparable | |||
| Implement the Comparator and Comparable interfaces for String objects, with support for case sensitivity. | |||
| 97 | class StringEscapeUtility | public | package com.tek271.util.string |
| extends StringEscapeUtils | |||
| Different string escapeing methods. | |||
| 98 | class StringUtility | public | package com.tek271.util.string |
| extends StringUtils | |||
Contains common string functions. Note that this class extends
org.apache.commons.lang.StringUtils.
The StringUtils class is available to download from
http://jakarta.apache.org/commons/lang/.
Make sure to include the downloaded jar file in your classpath, currently this is
commons-lang-2.1.jar. However, the tecuj download includes
this jar file.
Some interesting features are:
|
|||
| 99 | class TextTemplate | public | package com.tek271.util.string |
|
A text template class that allows substituting patterns (or tags) with values.
The easiest way to use it is to call one of the process() static methods. However, if you want to reuse the same template in your program but with different values, consider creating a TextTemplate object and assigning values to it using either setTagValue() or setAll(). History:
|
|||
| 100 | interface TextTemplate.ITagTransformer | public static interface | package com.tek271.util.string |
| Allows transforming tags to new values | |||
| 101 | class TextTemplate.Element | public | package com.tek271.util.string |
| Represents a single element of the processed text, the element can be either a string or a tag. | |||
| 102 | class AbstractMutex | public abstract | package com.tek271.util.thread |
| implements com.tek271.util.thread.IMutex | |||
|
Implements the IMutex interface |
|||
| 103 | class FileMutex | public | package com.tek271.util.thread |
| extends com.tek271.util.thread.AbstractMutex | |||
|
A mutual-exclusion-lock based on the existance of a file in the file system |
|||
| 104 | interface IMutex | public interface | package com.tek271.util.thread |
|
Define the interface of a mutual-exclusion-lock |
|||
| 105 | class Mutex | public | package com.tek271.util.thread |
| extends com.tek271.util.thread.AbstractMutex | |||
|
Create an in-memory mutual-exclusion-lock |
|||
| 106 | class OsExceutor | public | package com.tek271.util.thread |
| A wrapper around Runtime.getRuntime().exec() | |||
| 107 | class ThreadUtility | public | package com.tek271.util.thread |
Several static thread related methods including sleep(seconds).
|
|||
| 108 | class DateFormatUt | public | package com.tek271.util.time |
| extends DateFormatUtils | |||
| Date/Time formatting functions. | |||
| 109 | class DateUt | public | package com.tek271.util.time |
| extends DateUtils | |||
| Date/Time functions. | |||
| 110 | class XmlTree | public | package com.tek271.util.xml |
| implements java.lang.Cloneable | |||
|
A tree data structure that represents an XML document in a simplified DOM style.
It is a wrapper around the XML libraries that come with J2SE.
To use this class, use the static methods The program uses SAX to parse the XML document and build the tree. Some of its features:
|
|||
| 111 | class XmlTreeParser | package com.tek271.util.xml | |
| extends org.xml.sax.helpers.DefaultHandler | |||
Handles events received from SAX parser to populate an XmlTree
object.
Note that this class has a package scope and is not intended to be used by classes
other than This parser will ignore all comments in the XML data. This class was refactored in 2006.08.15 to extend DefaultHandler instead of HandlerBase which was deprecated. |
|||
| 112 | class XmlUtil | public | package com.tek271.util.xml |
| General XML utility methods, including the building of XML tags from their components. | |||
Updated the used libraries (Jakarta Commons and Log4J) to the latest release.
| Page Last Updated 2008.01.02 |
|