|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jstacs.io.XMLParser
public class XMLParser
Class for parsing standard datatypes and arrays in and out of an XML file.
The methods with prefix append
or add
are for
encoding, while methods with prefix extract
are for decoding.
Constructor Summary | |
---|---|
XMLParser()
|
Method Summary | ||
---|---|---|
static void |
addTags(StringBuffer source,
String tag)
Frames the StringBuffer source with "< tag
>" and "< /tag >" |
|
static void |
addTags(StringBuffer source,
String startTag,
String endTag)
Frames the StringBuffer source with "< startTag
>" and "< /endTag >" |
|
static void |
appendBoolean2ArrayWithTags(StringBuffer source,
boolean[][] i,
String tag)
Appends an encoded two dimensional boolean array with equal tags to the StringBuffer source . |
|
static void |
appendBoolean2ArrayWithTags(StringBuffer source,
boolean[][] i,
String startTag,
String endTag)
Appends an encoded two dimensional boolean array with start and end tag to the StringBuffer source . |
|
static void |
appendBooleanArrayWithTags(StringBuffer source,
boolean[] b,
String tag)
Appends an encoded boolean array with equal tags to the StringBuffer source . |
|
static void |
appendBooleanArrayWithTags(StringBuffer source,
boolean[] b,
String startTag,
String endTag)
Appends an encoded boolean array with start and end tag to the StringBuffer source . |
|
static void |
appendBooleanWithTags(StringBuffer source,
boolean b,
String tag)
Appends a boolean value with equal tags to the StringBuffer source in the following way: "< tag > b <
/tag >" |
|
static void |
appendBooleanWithTags(StringBuffer source,
boolean b,
String startTag,
String endTag)
Appends a boolean value with start and end tag to the StringBuffer source in the following way: "< startTag > b <
/endTag >" |
|
static void |
appendByte2ArrayWithTags(StringBuffer source,
byte[][] i,
String tag)
Appends an encoded two dimensional byte array with equal tags to the StringBuffer source . |
|
static void |
appendByte2ArrayWithTags(StringBuffer source,
byte[][] i,
String startTag,
String endTag)
Appends an encoded two dimensional byte array with start and end tag to the StringBuffer source . |
|
static void |
appendByteArrayWithTags(StringBuffer source,
byte[] b,
String tag)
Appends an encoded byte array with equal tags to the StringBuffer source . |
|
static void |
appendByteArrayWithTags(StringBuffer source,
byte[] b,
String startTag,
String endTag)
Appends an encoded byte array with start and end tag to the StringBuffer source . |
|
static void |
appendByteWithTags(StringBuffer source,
byte b,
String tag)
Appends a byte value with equal tags to the StringBuffer source in the following way: "< tag > b <
/tag >" |
|
static void |
appendByteWithTags(StringBuffer source,
byte b,
String startTag,
String endTag)
Appends a byte value with start and end tag to the StringBuffer source in the following way: "< startTag > b <
/endTag >" |
|
static void |
appendDouble2ArrayWithTags(StringBuffer source,
double[][] d,
String tag)
Appends an encoded two dimensional double array with equal tags to the StringBuffer source . |
|
static void |
appendDouble2ArrayWithTags(StringBuffer source,
double[][] d,
String startTag,
String endTag)
Appends an encoded two dimensional double array with start and end tag to the StringBuffer source . |
|
static void |
appendDoubleArrayWithTags(StringBuffer source,
double[] d,
String tag)
Appends an encoded double array with equal tags to the StringBuffer source . |
|
static void |
appendDoubleArrayWithTags(StringBuffer source,
double[] d,
String startTag,
String endTag)
Appends an encoded double array with start and end tag to the StringBuffer source . |
|
static void |
appendDoubleWithTags(StringBuffer source,
double d,
String startTag)
Appends a double value with equal tags to the StringBuffer source in the following way: "< tag > d <
/tag >" |
|
static void |
appendDoubleWithTags(StringBuffer source,
double d,
String startTag,
String endTag)
Appends a double value with start and end tag to the StringBuffer source in the following way: "< startTag > d <
/endTag >" |
|
static
|
appendEnumWithTags(StringBuffer source,
Enum<T> e,
String tag)
Appends an Enum object with equal tags to the StringBuffer source . |
|
static
|
appendEnumWithTags(StringBuffer source,
Enum<T> e,
String startTag,
String endTag)
Appends an Enum object with start and end tag to the StringBuffer source . |
|
static void |
appendInt2ArrayWithTags(StringBuffer source,
int[][] i,
String tag)
Appends an encoded two dimensional int array with equal tags to the StringBuffer source . |
|
static void |
appendInt2ArrayWithTags(StringBuffer source,
int[][] i,
String startTag,
String endTag)
Appends an encoded two dimensional int array with start and end tag to the StringBuffer source . |
|
static void |
appendIntArrayWithTags(StringBuffer source,
int[] i,
String tag)
Appends an encoded int array with equal tags to the StringBuffer source . |
|
static void |
appendIntArrayWithTags(StringBuffer source,
int[] i,
String startTag,
String endTag)
Appends an encoded int array with start and end tag to the StringBuffer source . |
|
static void |
appendIntWithTags(StringBuffer source,
int i,
String tag)
Appends an int value with equal tags to the StringBuffer source in the following way: "< tag > i <
/tag >" |
|
static void |
appendIntWithTags(StringBuffer source,
int i,
String startTag,
String endTag)
Appends an int value with start and end tag to the StringBuffer source in the following way: "< startTag > i <
/endTag >" |
|
static void |
appendLongWithTags(StringBuffer source,
long i,
String tag)
Appends a long value with equal tags to the StringBuffer source in the following way: "< tag > i <
/tag >" |
|
static void |
appendLongWithTags(StringBuffer source,
long i,
String startTag,
String endTag)
Appends a long value with start and end tag to the StringBuffer source in the following way: "< startTag > i <
/endTag >" |
|
static void |
appendStorable2ArrayWithTags(StringBuffer source,
Storable[][] s,
String tag)
Appends an encoded two dimensional Storable array with equal tags to the StringBuffer source . |
|
static void |
appendStorable2ArrayWithTags(StringBuffer source,
Storable[][] s,
String startTag,
String endTag)
Appends an encoded two dimensional Storable array with start and end tag to the StringBuffer source . |
|
static void |
appendStorable3ArrayWithTags(StringBuffer source,
Storable[][][] s,
String tag)
Appends an encoded three dimensional Storable array with equal tags to the StringBuffer source . |
|
static void |
appendStorable3ArrayWithTags(StringBuffer source,
Storable[][][] s,
String startTag,
String endTag)
Appends an encoded three dimensional Storable array with start and end tag to the StringBuffer source . |
|
static void |
appendStorableArrayWithTags(StringBuffer source,
Storable[] s,
String tag)
Appends an encoded Storable array with equal tags to the StringBuffer source . |
|
static void |
appendStorableArrayWithTags(StringBuffer source,
Storable[] s,
String startTag,
String endTag)
Appends an encoded Storable array with start and end tag to the StringBuffer source . |
|
static void |
appendStorableOrNullWithTags(StringBuffer source,
Storable s,
String tag)
Appends a Storable object or "null" with equal tags to the StringBuffer source . |
|
static void |
appendStorableOrNullWithTags(StringBuffer source,
Storable s,
String startTag,
String endTag)
Appends a Storable object or "null" with start and end tag to the StringBuffer source . |
|
static void |
appendStorableWithTags(StringBuffer source,
Storable s,
String startTag)
Appends a Storable object with equal tags to the StringBuffer source . |
|
static void |
appendStorableWithTags(StringBuffer source,
Storable s,
String startTag,
String endTag)
Appends a Storable object with start and end tag to the StringBuffer source . |
|
static void |
appendString2ArrayWithTags(StringBuffer source,
String[][] s,
String tag)
Appends an encoded two dimensional String array with equal tags to the StringBuffer source . |
|
static void |
appendString2ArrayWithTags(StringBuffer source,
String[][] s,
String startTag,
String endTag)
Appends an encoded two dimensional String array with start and end tag to the StringBuffer source . |
|
static void |
appendStringArrayWithTags(StringBuffer source,
String[] s,
String tag)
Appends an encoded String array with equal tags to the StringBuffer source . |
|
static void |
appendStringArrayWithTags(StringBuffer source,
String[] s,
String startTag,
String endTag)
Appends an encoded String array with start and end tag to the StringBuffer source . |
|
static void |
appendStringWithTags(StringBuffer source,
String s,
String startTag)
Appends a String with equal tags to the StringBuffer source in the following way: "< tag > s <
/tag >" |
|
static void |
appendStringWithTags(StringBuffer source,
String s,
String startTag,
String endTag)
Appends a String with start and end tag to the StringBuffer source in the following way: "< startTag > s <
/endTag >" |
|
protected static StringBuffer |
BooleanArrayWithTags(boolean[] b)
Encodes a boolean array. |
|
protected static StringBuffer |
ByteArrayWithTags(byte[] b)
Encodes a byte array. |
|
protected static StringBuffer |
DoubleArrayWithTags(double[] d)
Encodes a double array. |
|
static boolean[][] |
extractBoolean2ArrayForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as a two dimensional boolean array. |
|
static boolean[][] |
extractBoolean2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional boolean array. |
|
static boolean[] |
extractBooleanArrayForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as a boolean array. |
|
static boolean[] |
extractBooleanArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a boolean array. |
|
static boolean |
extractBooleanForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as boolean. |
|
static boolean |
extractBooleanForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as boolean. |
|
static byte[][] |
extractByte2ArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a two dimensional byte array. |
|
static byte[][] |
extractByte2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional byte array. |
|
static byte[] |
extractByteArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a byte array. |
|
static byte[] |
extractByteArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a byte array. |
|
static byte |
extractByteForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as byte. |
|
static byte |
extractByteForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as byte. |
|
static double[][] |
extractDouble2ArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a two dimensional double array. |
|
static double[][] |
extractDouble2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional double array. |
|
static double[] |
extractDoubleArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a double array. |
|
static double[] |
extractDoubleArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a double array. |
|
static double |
extractDoubleForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as double. |
|
static double |
extractDoubleForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as double. |
|
static
|
extractEnumForTag(StringBuffer source,
String tag)
Returns the enumeration between equal start and end tags as Enum. |
|
static
|
extractEnumForTag(StringBuffer source,
String startTag,
String endTag)
Returns the enumeration between start and end tag as Enum. |
|
static StringBuffer |
extractForTag(StringBuffer source,
String tag)
Extracts the code between equal start and end tags and returns the substring between the tags as new StringBuffer. |
|
static StringBuffer |
extractForTag(StringBuffer source,
String startTag,
String endTag)
Returns the substring between start and end tag as StringBuffer. |
|
static int[][] |
extractInt2ArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a two dimensional int array. |
|
static int[][] |
extractInt2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional int array. |
|
static int[] |
extractIntArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as an int array. |
|
static int[] |
extractIntArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as an int array. |
|
static int |
extractIntForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as int. |
|
static int |
extractIntForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as int. |
|
static long |
extractLongForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as long. |
|
static long |
extractLongForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as long. |
|
static Storable[][] |
extractStorable2ArrayForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as a two dimensional Storable array. |
|
static Storable[][] |
extractStorable2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional Storable array. |
|
static Storable[][][] |
extractStorable3ArrayForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as a three dimensional Storable array. |
|
static Storable[][][] |
extractStorable3ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a three dimensional Storable array. |
|
static Storable[] |
extractStorableArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a Storable array. |
|
static Storable[] |
extractStorableArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a Storable array. |
|
static Storable |
extractStorableForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as Storable . |
|
static Storable |
extractStorableForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as Storable . |
|
static Storable |
extractStorableOrNullForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as Storable or null . |
|
static Storable |
extractStorableOrNullForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as Storable or null . |
|
static String[][] |
extractString2ArrayForTag(StringBuffer source,
String tag)
Returns the value between equal start and end tags as a two dimensional String array. |
|
static String[][] |
extractString2ArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a two dimensional String array. |
|
static String[] |
extractStringArrayForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a String array. |
|
static String[] |
extractStringArrayForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a String array. |
|
static String |
extractStringForTag(StringBuffer source,
String startTag)
Returns the value between equal start and end tags as a String. |
|
static String |
extractStringForTag(StringBuffer source,
String startTag,
String endTag)
Returns the value between start and end tag as a String. |
|
protected static StringBuffer |
IntArrayWithTags(int[] i)
Encodes an int array. |
|
protected static StringBuffer |
StorableArrayWithTags(Storable[] s)
Encodes a Storable array. |
|
protected static StringBuffer |
StringArrayWithTags(String[] s)
Encodes a String array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParser()
Method Detail |
---|
public static StringBuffer extractForTag(StringBuffer source, String tag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a substring shall be taken (start tag should be equal to end tag)
NonParsableException
- if the substring could not be parsedpublic static StringBuffer extractForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the substring could not be parsedpublic static boolean extractBooleanForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static boolean extractBooleanForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static byte extractByteForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static byte extractByteForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static <T extends Enum<T>> T extractEnumForTag(StringBuffer source, String tag) throws NonParsableException
T
- the type of the Enum objectssource
- the source StringBuffer that should be decoded from XMLtag
- the tags between which an enumeration shall be taken (start tag should be equal to end tag)
NonParsableException
- if the enumeration could not be parsedpublic static <T extends Enum<T>> T extractEnumForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
T
- the type of the Enum objectssource
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the enumeration could not be parsedpublic static int extractIntForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static int extractIntForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static long extractLongForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static long extractLongForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static double extractDoubleForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static double extractDoubleForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static Storable extractStorableForTag(StringBuffer source, String startTag) throws NonParsableException
Storable
.
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static Storable extractStorableForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
Storable
.
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static Storable extractStorableOrNullForTag(StringBuffer source, String tag) throws NonParsableException
Storable
or null
.
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
null
NonParsableException
- if the value could not be parsedpublic static Storable extractStorableOrNullForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
Storable
or null
.
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
null
NonParsableException
- if the value could not be parsedpublic static String extractStringForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static String extractStringForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static boolean[] extractBooleanArrayForTag(StringBuffer source, String tag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static boolean[] extractBooleanArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static byte[] extractByteArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static byte[] extractByteArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static int[] extractIntArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static int[] extractIntArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBufferstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static double[] extractDoubleArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static double[] extractDoubleArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static Storable[] extractStorableArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static Storable[] extractStorableArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static String[] extractStringArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static String[] extractStringArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static Storable[][] extractStorable2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
Storable
array.
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static Storable[][] extractStorable2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
Storable
array.
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static Storable[][][] extractStorable3ArrayForTag(StringBuffer source, String tag) throws NonParsableException
Storable
array.
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static Storable[][][] extractStorable3ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
Storable
array.
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static boolean[][] extractBoolean2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static boolean[][] extractBoolean2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static byte[][] extractByte2ArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static byte[][] extractByte2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static int[][] extractInt2ArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static int[][] extractInt2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static double[][] extractDouble2ArrayForTag(StringBuffer source, String startTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static double[][] extractDouble2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static String[][] extractString2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLtag
- the tags between which a value shall be taken (start tag should be equal to end tag)
NonParsableException
- if the value could not be parsedpublic static String[][] extractString2ArrayForTag(StringBuffer source, String startTag, String endTag) throws NonParsableException
source
- the source StringBuffer that should be decoded from XMLstartTag
- the start tagendTag
- the end tag
NonParsableException
- if the value could not be parsedpublic static void addTags(StringBuffer source, String tag)
source
with "< tag
>" and "< /tag
>"
source
- the source StringBuffer that should be encoded in XMLtag
- the tags by which the StringBuffer should be framed (start tag should be equal to end tag)public static void addTags(StringBuffer source, String startTag, String endTag)
source
with "< startTag
>" and "< /endTag
>"
source
- the source StringBuffer that should be encoded in XMLstartTag
- the start tagendTag
- the end tagpublic static void appendBooleanWithTags(StringBuffer source, boolean b, String tag)
source
in the following way: "< tag
> b
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLb
- the value that should be framed by the tags and appended to the sourcetag
- the tags by which the value should be framed (start tag should be equal to end tag)public static void appendBooleanWithTags(StringBuffer source, boolean b, String startTag, String endTag)
source
in the following way: "< startTag
> b
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLb
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendByteWithTags(StringBuffer source, byte b, String tag)
source
in the following way: "< tag
> b
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLb
- the value that should be framed by the tags and appended to the sourcetag
- the tags by which the value should be framed (start tag should be equal to end tag)public static void appendByteWithTags(StringBuffer source, byte b, String startTag, String endTag)
source
in the following way: "< startTag
> b
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLb
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static <T extends Enum<T>> void appendEnumWithTags(StringBuffer source, Enum<T> e, String tag)
source
.
T
- the type of the Enum objectssource
- the source StringBuffer that should be encoded in XMLe
- the enumeration that should be framed by the tags and appended to the sourcetag
- the tags by which the enumeration should be framed (start tag should be equal to end tag)public static <T extends Enum<T>> void appendEnumWithTags(StringBuffer source, Enum<T> e, String startTag, String endTag)
source
.
T
- the type of the Enum objectssource
- the source StringBuffer that should be encoded in XMLe
- the enumeration that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendIntWithTags(StringBuffer source, int i, String tag)
source
in the following way: "< tag
> i
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLi
- the value that should be framed by the tags and appended to the sourcetag
- the tags by which the value should be framed (start tag should be equal to end tag)public static void appendIntWithTags(StringBuffer source, int i, String startTag, String endTag)
source
in the following way: "< startTag
> i
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLi
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendLongWithTags(StringBuffer source, long i, String tag)
source
in the following way: "< tag
> i
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLi
- the value that should be framed by the tags and appended to the sourcetag
- the tags by which the value should be framed (start tag should be equal to end tag)public static void appendLongWithTags(StringBuffer source, long i, String startTag, String endTag)
source
in the following way: "< startTag
> i
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLi
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendDoubleWithTags(StringBuffer source, double d, String startTag)
source
in the following way: "< tag
> d
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLd
- the value that should be framed by the tags and appended to the sourcestartTag
- the tags by which the value should be framed (start tag should be equal to end tag)public static void appendDoubleWithTags(StringBuffer source, double d, String startTag, String endTag)
source
in the following way: "< startTag
> d
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLd
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendStorableWithTags(StringBuffer source, Storable s, String startTag)
Storable
object with equal tags to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the object that should be framed by the tags and appended to the sourcestartTag
- the tags by which the object should be framed (start tag should be equal to end tag)public static void appendStorableWithTags(StringBuffer source, Storable s, String startTag, String endTag)
Storable
object with start and end tag to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the object that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendStorableOrNullWithTags(StringBuffer source, Storable s, String tag)
Storable
object or "null" with equal tags to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the object that should be framed by the tags and appended to the source, if null
then "null" framed by the tags is appended to the sourcetag
- the tags by which the object or "null" should be framed (start tag should be equal to end tag)public static void appendStorableOrNullWithTags(StringBuffer source, Storable s, String startTag, String endTag)
Storable
object or "null" with start and end tag to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the object that should be framed by start and end tag and appended to the source, if null
then "null" framed by start and end tag is appended to the sourcestartTag
- the start tagendTag
- the end tagpublic static void appendStringWithTags(StringBuffer source, String s, String startTag)
source
in the following way: "< tag
> s
<
/tag
>"
source
- the source StringBuffer that should be encoded in XMLs
- the String that should be framed by the tags and appended to the sourcestartTag
- the tags by which the String should be framed (start tag should be equal to end tag)public static void appendStringWithTags(StringBuffer source, String s, String startTag, String endTag)
source
in the following way: "< startTag
> s
<
/endTag
>"
source
- the source StringBuffer that should be encoded in XMLs
- the value that should be framed by start and end tag and appended to the sourcestartTag
- the start tagendTag
- the end tagprotected static StringBuffer ByteArrayWithTags(byte[] b)
b
- the array that should be encoded
addTags( StringBuffer source, String tag )
,
addTags( StringBuffer source, String startTag, String
endTag )
protected static StringBuffer IntArrayWithTags(int[] i)
i
- the array that should be encoded
addTags( StringBuffer source, String tag )
,
addTags( StringBuffer source, String startTag, String
endTag )
protected static StringBuffer DoubleArrayWithTags(double[] d)
d
- the array that should be encoded
IntArrayWithTags( int[] i )
protected static StringBuffer BooleanArrayWithTags(boolean[] b)
b
- the array that should be encoded
IntArrayWithTags( int[] i )
protected static StringBuffer StringArrayWithTags(String[] s)
s
- the array that should be encoded
IntArrayWithTags( int[] i )
protected static StringBuffer StorableArrayWithTags(Storable[] s)
s
- the Storable object that should be encoded
public static void appendBooleanArrayWithTags(StringBuffer source, boolean[] b, String tag)
source
. The encoding is
like in appendByteArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLb
- the array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded array should be framed (start tag should be equal to end tag)appendByteArrayWithTags( StringBuffer source, byte[] b,
String startTag, String endTag )
public static void appendBooleanArrayWithTags(StringBuffer source, boolean[] b, String startTag, String endTag)
source
. The encoding is
like in appendByteArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLb
- the array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagappendByteArrayWithTags( StringBuffer source, byte[] b,
String startTag, String endTag )
public static void appendByteArrayWithTags(StringBuffer source, byte[] b, String tag)
source
. The encoding is
like in appendByteArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLb
- the array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded array should be framed (start tag should be equal to end tag)appendByteArrayWithTags( StringBuffer source, byte[] b,
String startTag, String endTag )
public static void appendByteArrayWithTags(StringBuffer source, byte[] b, String startTag, String endTag)
source
. The encoding
is this way: startTag
> <length>b.length</length>
/endTag
>
source
- the source StringBuffer that should be encoded in XMLb
- the array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendIntArrayWithTags(StringBuffer source, int[] i, String tag)
source
. The encoding is
like in appendIntArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLi
- the array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded array should be framed (start tag should be equal to end tag)appendIntArrayWithTags( StringBuffer source, int[] i,
String startTag, String endTag )
public static void appendIntArrayWithTags(StringBuffer source, int[] i, String startTag, String endTag)
source
. The encoding
is this way: startTag
> <length>i.length</length>
/endTag
>
source
- the source StringBuffer that should be encoded in XMLi
- the array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendDoubleArrayWithTags(StringBuffer source, double[] d, String tag)
source
. The
encoding is like in appendIntArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLd
- the array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded array should be framed (start tag should be equal to end tag)appendIntArrayWithTags( StringBuffer source, int[] i,
String startTag, String endTag )
public static void appendDoubleArrayWithTags(StringBuffer source, double[] d, String startTag, String endTag)
source
. The
encoding is like in appendIntArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLd
- the array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagappendIntArrayWithTags( StringBuffer source, int[] i,
String startTag, String endTag )
public static void appendStorableArrayWithTags(StringBuffer source, Storable[] s, String tag)
source
.
source
- the source StringBuffer that should be encoded in XMLs
- the Storable array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded Storable array should be framed (start tag should be equal to end tag)public static void appendStorableArrayWithTags(StringBuffer source, Storable[] s, String startTag, String endTag)
source
.
source
- the source StringBuffer that should be encoded in XMLs
- the Storable array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendStringArrayWithTags(StringBuffer source, String[] s, String tag)
source
. The
encoding is like in appendIntArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLs
- the array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded array should be framed (start tag should be equal to end tag)appendIntArrayWithTags( StringBuffer source, int[] i,
String startTag, String endTag )
public static void appendStringArrayWithTags(StringBuffer source, String[] s, String startTag, String endTag)
source
. The
encoding is like in appendIntArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLs
- the array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagappendIntArrayWithTags( StringBuffer source, int[] i,
String startTag, String endTag )
public static void appendBoolean2ArrayWithTags(StringBuffer source, boolean[][] i, String tag)
source
.
The encoding is like in appendBoolean2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional array should be framed (start tag should be equal to end tag)appendBoolean2ArrayWithTags( StringBuffer source, boolean[][] i,
String startTag, String endTag )
public static void appendBoolean2ArrayWithTags(StringBuffer source, boolean[][] i, String startTag, String endTag)
source
.
The encoding is the following way:
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendByte2ArrayWithTags(StringBuffer source, byte[][] i, String tag)
source
.
The encoding is like in appendByte2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional array should be framed (start tag should be equal to end tag)appendByte2ArrayWithTags( StringBuffer source, byte[][] i,
String startTag, String endTag )
public static void appendByte2ArrayWithTags(StringBuffer source, byte[][] i, String startTag, String endTag)
source
.
The encoding is the following way:
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendInt2ArrayWithTags(StringBuffer source, int[][] i, String tag)
source
.
The encoding is like in appendInt2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional array should be framed (start tag should be equal to end tag)appendInt2ArrayWithTags( StringBuffer source, int[][] i,
String startTag, String endTag )
public static void appendInt2ArrayWithTags(StringBuffer source, int[][] i, String startTag, String endTag)
source
.
The encoding is the following way:
source
- the source StringBuffer that should be encoded in XMLi
- the two dimensional array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendDouble2ArrayWithTags(StringBuffer source, double[][] d, String tag)
source
.
The encoding is like in appendInt2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLd
- the two dimensional array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional array should be framed (start tag should be equal to end tag)appendInt2ArrayWithTags( StringBuffer source, int[][] i,
String startTag, String endTag )
public static void appendDouble2ArrayWithTags(StringBuffer source, double[][] d, String startTag, String endTag)
source
.
The encoding is like in appendInt2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLd
- the two dimensional array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagappendInt2ArrayWithTags( StringBuffer source, int[][] i,
String startTag, String endTag )
public static void appendStorable2ArrayWithTags(StringBuffer source, Storable[][] s, String tag)
Storable
array with equal tags to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the two dimensional Storable array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional Storable array should be framed (start tag should be equal to end tag)public static void appendStorable2ArrayWithTags(StringBuffer source, Storable[][] s, String startTag, String endTag)
Storable
array with start and end tag to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the two dimensional Storable array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendStorable3ArrayWithTags(StringBuffer source, Storable[][][] s, String tag)
Storable
array with equal tags to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the three dimensional Storable array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded three dimensional Storable array should be framed (start tag should be equal to end tag)public static void appendStorable3ArrayWithTags(StringBuffer source, Storable[][][] s, String startTag, String endTag)
Storable
array with start and end tag to the StringBuffer source
.
source
- the source StringBuffer that should be encoded in XMLs
- the three dimensional Storable array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagpublic static void appendString2ArrayWithTags(StringBuffer source, String[][] s, String tag)
source
.
The encoding is like in appendInt2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLs
- the two dimensional array that should be encoded and appended to the source framed by the tagstag
- the tags by which the encoded two dimensional array should be framed (start tag should be equal to end tag)appendInt2ArrayWithTags( StringBuffer source, int[][] i,
String startTag, String endTag )
public static void appendString2ArrayWithTags(StringBuffer source, String[][] s, String startTag, String endTag)
source
.
The encoding is like in appendInt2ArrayWithTags.
source
- the source StringBuffer that should be encoded in XMLs
- the two dimensional array that should be encoded and appended to the source framed by start and end tagstartTag
- the start tagendTag
- the end tagappendInt2ArrayWithTags( StringBuffer source, int[][] i,
String startTag, String endTag )
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |