Package com.randomnoun.common
package com.randomnoun.common
-
ClassDescriptionEncodes and decodes to and from Base64 notation.A
Base64.InputStream
will read data from anotherjava.io.InputStream
, given in the constructor, and encode/decode to/from Base64 notation on the fly.ABase64.OutputStream
will write data to anotherjava.io.OutputStream
, given in the constructor, and encode/decode to/from Base64 notation on the fly.This class is used to convert the Maps and Lists returned by Spring DAO into camelCase versions, which can be used when dealing with some databases that return all column names in upper case.The ErrorList class is a a fairly generic class for containing validation errors for input forms, similar to the struts ActionErrors class.ErrorInfo inner class - contains information related to a single errorException utilities class.HashMapIgnoreCase<K,V> Case-preserving hashmap that allows case-insensitive lookups.Windows .ini file parser Properties without explicit groups are recorded with a null groupUse the AWT Robot class to send strings to another application.MRUCache<K,V> Most-recently used cache class.The callback interface.Utility class for running processes, including timeouts, and slightly better exceptions that include more information about process failure.The PropertyParser class parses a property definition text file into a Properties object.Find a resource recursively through all JARs, EARs, WARs, etc from the current directory down.Class which defines a callback which sends names and resources to System.out.AnInputStream
wrapper which updates an internal md5/sha1 digest as the stream is being read.Class which defines a callback which sends names and resource hashes to System.out.A callback interface used when resources are found using this objectUtility class to copy streams synchronously and asynchronously.Encoder/decoder of JavaBeans and 'structured' maps and lists.Backwards compatible class until this is removedA Comparator which performs comparisons between two rows in a structured list (used in sorting).A Comparator which performs comparisons between two rows in a structured list (used in sorting), keyed on a case-insensitive String value.This class can be serialised as a JSON value by calling it's toJson() methodThis class can be serialised as a JSON value by calling it's toJson(String) method.This class can be serialised as a JSON value by calling it's toString() methodThis class can be serialised as a JSON value by calling it's writeJsonFormat() method Multiple json formats are supported by supplying a jsonFormat string; e.g.Text utility functionsCan probably do all this with ThreadLocals these days.XML utility functionsAn abstract stack-based XML parser.Convert a NodeList into something that Java1.5 can treat as Iterable, so that it can be used infor (Node node : nodeList) { ...
Convert a table into a List of Lists (each top-level list represents a table row, each second-level list represents a table cell).