|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.jinx.db.Configuration
public class Configuration
Configuration contains several utility methods for storing
configuration-style data in a textual form and for converting various
primitive array types into each other. In short, aside from a few utility
methods, this class contains helper methods for Hierarchy.
API Stability: Stable.
Method Summary | |
---|---|
static java.lang.String |
decodeElement(java.lang.String property)
Decodes a String from quoted String form. |
static java.lang.String |
encodeElement(java.lang.String property)
Encodes a String into a quoted String. |
static void |
load(java.util.Map map,
java.io.InputStream inStream)
Loads data from the inputStream, taking the data in the stream to be in the format this class uses. |
static void |
store(java.util.Map map,
java.io.OutputStream outStream)
Stores a java.util.Map's key-value pairs into an OutputStream in this class's standard format. |
static java.math.BigDecimal[] |
toBigDecimalArray(byte[] a)
|
static java.math.BigDecimal[] |
toBigDecimalArray(double[] a)
|
static java.math.BigDecimal[] |
toBigDecimalArray(float[] a)
|
static java.math.BigDecimal[] |
toBigDecimalArray(int[] a)
|
static java.math.BigDecimal[] |
toBigDecimalArray(long[] a)
|
static java.math.BigDecimal[] |
toBigDecimalArray(short[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(byte[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(double[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(float[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(int[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(long[] a)
|
static java.math.BigInteger[] |
toBigIntegerArray(short[] a)
|
static byte[] |
toByteArray(byte[] a)
|
static byte[] |
toByteArray(double[] a)
|
static byte[] |
toByteArray(float[] a)
|
static byte[] |
toByteArray(int[] a)
|
static byte[] |
toByteArray(long[] a)
|
static byte[] |
toByteArray(short[] a)
|
static double[] |
toDoubleArray(byte[] a)
|
static double[] |
toDoubleArray(double[] a)
|
static double[] |
toDoubleArray(float[] a)
|
static double[] |
toDoubleArray(int[] a)
|
static double[] |
toDoubleArray(long[] a)
|
static double[] |
toDoubleArray(short[] a)
|
static float[] |
toFloatArray(byte[] a)
|
static float[] |
toFloatArray(double[] a)
|
static float[] |
toFloatArray(float[] a)
|
static float[] |
toFloatArray(int[] a)
|
static float[] |
toFloatArray(long[] a)
|
static float[] |
toFloatArray(short[] a)
|
static int[] |
toIntArray(byte[] a)
|
static int[] |
toIntArray(double[] a)
|
static int[] |
toIntArray(float[] a)
|
static int[] |
toIntArray(int[] a)
|
static int[] |
toIntArray(long[] a)
|
static int[] |
toIntArray(short[] a)
|
static long[] |
toLongArray(byte[] a)
|
static long[] |
toLongArray(double[] a)
|
static long[] |
toLongArray(float[] a)
|
static long[] |
toLongArray(int[] a)
|
static long[] |
toLongArray(long[] a)
|
static long[] |
toLongArray(short[] a)
|
static short[] |
toShortArray(byte[] a)
|
static short[] |
toShortArray(double[] a)
|
static short[] |
toShortArray(float[] a)
|
static short[] |
toShortArray(int[] a)
|
static short[] |
toShortArray(long[] a)
|
static short[] |
toShortArray(short[] a)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.math.BigInteger[] toBigIntegerArray(byte[] a)
public static java.math.BigInteger[] toBigIntegerArray(short[] a)
public static java.math.BigInteger[] toBigIntegerArray(int[] a)
public static java.math.BigInteger[] toBigIntegerArray(long[] a)
public static java.math.BigInteger[] toBigIntegerArray(float[] a)
public static java.math.BigInteger[] toBigIntegerArray(double[] a)
public static java.math.BigDecimal[] toBigDecimalArray(byte[] a)
public static java.math.BigDecimal[] toBigDecimalArray(short[] a)
public static java.math.BigDecimal[] toBigDecimalArray(int[] a)
public static java.math.BigDecimal[] toBigDecimalArray(long[] a)
public static java.math.BigDecimal[] toBigDecimalArray(float[] a)
public static java.math.BigDecimal[] toBigDecimalArray(double[] a)
public static byte[] toByteArray(byte[] a)
public static byte[] toByteArray(short[] a)
public static byte[] toByteArray(int[] a)
public static byte[] toByteArray(long[] a)
public static byte[] toByteArray(float[] a)
public static byte[] toByteArray(double[] a)
public static short[] toShortArray(byte[] a)
public static short[] toShortArray(short[] a)
public static short[] toShortArray(int[] a)
public static short[] toShortArray(long[] a)
public static short[] toShortArray(float[] a)
public static short[] toShortArray(double[] a)
public static int[] toIntArray(byte[] a)
public static int[] toIntArray(short[] a)
public static int[] toIntArray(int[] a)
public static int[] toIntArray(long[] a)
public static int[] toIntArray(float[] a)
public static int[] toIntArray(double[] a)
public static long[] toLongArray(byte[] a)
public static long[] toLongArray(short[] a)
public static long[] toLongArray(int[] a)
public static long[] toLongArray(long[] a)
public static long[] toLongArray(float[] a)
public static long[] toLongArray(double[] a)
public static float[] toFloatArray(byte[] a)
public static float[] toFloatArray(short[] a)
public static float[] toFloatArray(int[] a)
public static float[] toFloatArray(long[] a)
public static float[] toFloatArray(float[] a)
public static float[] toFloatArray(double[] a)
public static double[] toDoubleArray(byte[] a)
public static double[] toDoubleArray(short[] a)
public static double[] toDoubleArray(int[] a)
public static double[] toDoubleArray(long[] a)
public static double[] toDoubleArray(float[] a)
public static double[] toDoubleArray(double[] a)
public static void store(java.util.Map map, java.io.OutputStream outStream) throws java.io.IOException
map
- the java.util.Map to iterate over for key-value pairs.outStream
- the java.io.OutputStream to write lines of text to. The
stream is not closed.
java.io.IOException
- if an I/O error occurs while writing to the stream.
java.lang.NullPointerException
- if map or outStream are null.public static void load(java.util.Map map, java.io.InputStream inStream) throws java.io.IOException
map
- the java.util.Map to store the data in once it's been parsed.inStream
- the java.io.InputStream to read lines of text from. This
stream is read from until the end of file is reached. The stream is not
closed.
java.io.IOException
- if an I/O error occurs reading from the stream.
java.lang.IllegalArgumentException
- if the data from the stream is not
arranged appropriately.
java.lang.NullPointerException
- if map or inStream are null.public static java.lang.String encodeElement(java.lang.String property)
property
- the String to encode.
public static java.lang.String decodeElement(java.lang.String property)
property
- the String to decode.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |