|
||||||||||
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 data types 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 equal tags
"< tag >" and "</tag
>". |
|
static void |
addTagsAndAttributes(StringBuffer source,
String tag,
String attributes)
Frames the StringBuffer source with "<
tag attributes >" and "</tag
>". |
|
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 |
appendBoolean2ArrayWithTagsAndAttributes(StringBuffer source,
boolean[][] i,
String tag,
String attributes)
Appends an encoded two dimensional boolean array with the
tags 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 |
appendBooleanArrayWithTagsAndAttributes(StringBuffer source,
boolean[] b,
String tag,
String attributes)
Appends an encoded boolean array with the tags 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 |
appendBooleanWithTagsAndAttributes(StringBuffer source,
boolean b,
String tag,
String attributes)
Appends a boolean value with the tags to the
StringBuffer source in the following way: "<
tag attributes >b </tag
>". |
|
static void |
appendByte2ArrayWithTags(StringBuffer source,
byte[][] b,
String tag)
Appends an encoded two dimensional byte array with equal
tags to the StringBuffer source . |
|
static void |
appendByte2ArrayWithTagsAndAttributes(StringBuffer source,
byte[][] b,
String tag,
String attributes)
Appends an encoded two dimensional byte array with the
tags 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 |
appendByteArrayWithTagsAndAttributes(StringBuffer source,
byte[] b,
String tag,
String attributes)
Appends an encoded byte array with the tags 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 |
appendByteWithTagsAndAttributes(StringBuffer source,
byte b,
String tag,
String attributes)
Appends a byte value with the tags to the
StringBuffer source in the following way: "<
tag attributes >b </tag
>". |
|
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 |
appendDouble2ArrayWithTagsAndAttributes(StringBuffer source,
double[][] d,
String tag,
String attributes)
Appends an encoded two dimensional double array with the
tags 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 |
appendDoubleArrayWithTagsAndAttributes(StringBuffer source,
double[] d,
String tag,
String attributes)
Appends an encoded double array with the tags to
the StringBuffer source . |
|
static void |
appendDoubleWithTags(StringBuffer source,
double d,
String tag)
Appends a double value with equal tags to the
StringBuffer source in the following way: "<
tag >d </tag >". |
|
static void |
appendDoubleWithTagsAndAttributes(StringBuffer source,
double d,
String tag,
String attributes)
Appends a double value with the tags to the
StringBuffer source in the following way: "<
tag attributes >d </tag
>". |
|
static
|
appendEnumWithTags(StringBuffer source,
Enum<T> e,
String tag)
Appends an Enum object with equal tags to the
StringBuffer source . |
|
static
|
appendEnumWithTagsAndAttributes(StringBuffer source,
Enum<T> e,
String tag,
String attributes)
Appends an Enum object with the tags 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 |
appendInt2ArrayWithTagsAndAttributes(StringBuffer source,
int[][] i,
String tag,
String attributes)
Appends an encoded two dimensional int array with the
tags 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 |
appendIntArrayWithTagsAndAttributes(StringBuffer source,
int[] i,
String tag,
String attributes)
Appends an encoded int array with the tags 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 |
appendIntWithTagsAndAttributes(StringBuffer source,
int i,
String tag,
String attributes)
Appends an int value with the tags to the
StringBuffer source in the following way: "<
tag attributes >i </tag
>". |
|
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 |
appendLongWithTagsAndAttributes(StringBuffer source,
long l,
String tag,
String attributes)
Appends a long value with the tags to the
StringBuffer source in the following way: "<
tag attributes >i </tag
>". |
|
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 |
appendStorable2ArrayWithTagsAndAttributes(StringBuffer source,
Storable[][] s,
String tag,
String attributes)
Appends an encoded two dimensional Storable array with the
tags 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 |
appendStorable3ArrayWithTagsAndAttributes(StringBuffer source,
Storable[][][] s,
String tag,
String attributes)
Appends an encoded three dimensional Storable array with the
tags 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 |
appendStorableArrayWithTagsAndAttributes(StringBuffer source,
Storable[] s,
String tag,
String attributes)
Appends an encoded Storable array with the tags to the
StringBuffer source . |
|
static void |
appendStorableWithTags(StringBuffer source,
Storable s,
String tag)
Appends a Storable object or "null" with equal tags to
the StringBuffer source . |
|
static void |
appendStorableWithTagsAndAttributes(StringBuffer source,
Storable s,
String tag,
String attributes)
Appends a Storable object or "null" with the
tags 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 |
appendString2ArrayWithTagsAndAttributes(StringBuffer source,
String[][] s,
String tag,
String attributes)
Appends an encoded two dimensional String array with the
tags 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 |
appendStringArrayWithTagsAndAttributes(StringBuffer source,
String[] s,
String tag,
String attributes)
Appends an encoded String array with the tags to the
StringBuffer source . |
|
static void |
appendStringWithTags(StringBuffer source,
String s,
String tag)
Appends a String with equal tags to the StringBuffer
source in the following way: "<tag >
s </tag >". |
|
static void |
appendStringWithTagsAndAttributes(StringBuffer source,
String s,
String tag,
String attributes)
Appends a String with the tags to the
StringBuffer source in the following way: "<
tag attributes >s </tag
>". |
|
static boolean[][] |
extractBoolean2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional boolean array. |
|
static boolean[][] |
extractBoolean2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional boolean array. |
|
static boolean |
extractBooleanAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as boolean . |
|
static boolean[] |
extractBooleanArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as boolean array. |
|
static boolean[] |
extractBooleanArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as boolean array. |
|
static boolean |
extractBooleanForTag(StringBuffer source,
String tag)
Returns the value between the tags as boolean . |
|
static byte[][] |
extractByte2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional byte array. |
|
static byte[][] |
extractByte2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional byte array. |
|
static byte |
extractByteAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as byte . |
|
static byte[] |
extractByteArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as byte array. |
|
static byte[] |
extractByteArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as byte array. |
|
static byte |
extractByteForTag(StringBuffer source,
String tag)
Returns the value between the tags as byte . |
|
static double[][] |
extractDouble2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional double array. |
|
static double[][] |
extractDouble2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional double array. |
|
static double |
extractDoubleAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as double . |
|
static double[] |
extractDoubleArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as double array. |
|
static double[] |
extractDoubleArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as double array. |
|
static double |
extractDoubleForTag(StringBuffer source,
String tag)
Returns the value between the tags as double
. |
|
static
|
extractEnumAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as Enum . |
|
static
|
extractEnumForTag(StringBuffer source,
String tag)
Returns the value between the tags as Enum . |
|
static StringBuffer |
extractForTag(StringBuffer source,
String tag)
Extracts the contents of source between tag start and end tags. |
|
static StringBuffer |
extractForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Extracts the contents of source between tag start and end tags. |
|
static int[][] |
extractInt2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional int array. |
|
static int[][] |
extractInt2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional int array. |
|
static int |
extractIntAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as int . |
|
static int[] |
extractIntArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as int array. |
|
static int[] |
extractIntArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as int array. |
|
static int |
extractIntForTag(StringBuffer source,
String tag)
Returns the value between the tags as int . |
|
static long |
extractLongAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as long . |
|
static long |
extractLongForTag(StringBuffer source,
String tag)
Returns the value between the tags as long . |
|
static Storable[][] |
extractStorable2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional Storable array. |
|
static Storable[][] |
extractStorable2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes,
Class<? extends Storable> clazz)
Returns the value between the tags as two dimensional Storable
array. |
|
static Storable[][] |
extractStorable2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional Storable array. |
|
static Storable[][] |
extractStorable2ArrayForTag(StringBuffer source,
String tag,
Class<? extends Storable> clazz)
Returns the value between the tags as two dimensional Storable
array. |
|
static Storable[][][] |
extractStorable3ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as three dimensional Storable array. |
|
static Storable[][][] |
extractStorable3ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes,
Class<? extends Storable> clazz)
Returns the value between the tags as three dimensional Storable array. |
|
static Storable[][][] |
extractStorable3ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as three dimensional Storable array. |
|
static Storable[][][] |
extractStorable3ArrayForTag(StringBuffer source,
String tag,
Class<? extends Storable> clazz)
Returns the value between the tags as three dimensional Storable array. |
|
static Storable |
extractStorableAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as Storable or null . |
|
static Storable |
extractStorableAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes,
Class<? extends Storable> clazz)
Returns the value between the tags as Storable or null . |
|
static Storable[] |
extractStorableArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as Storable array. |
|
static Storable[] |
extractStorableArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes,
Class<? extends Storable> clazz)
Returns the value between the tags as Storable array. |
|
static Storable[] |
extractStorableArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as Storable array. |
|
static Storable[] |
extractStorableArrayForTag(StringBuffer source,
String tag,
Class<? extends Storable> clazz)
Returns the value between the tags as Storable array. |
|
static Storable |
extractStorableForTag(StringBuffer source,
String tag)
Returns the value between the tags as Storable or null . |
|
static Storable |
extractStorableForTag(StringBuffer source,
String tag,
Class<? extends Storable> clazz)
Returns the value between the tags as Storable or null . |
|
static String[][] |
extractString2ArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as two dimensional String array. |
|
static String[][] |
extractString2ArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as two dimensional String array. |
|
static String |
extractStringAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as String . |
|
static String[] |
extractStringArrayAndAttributesForTag(StringBuffer source,
String tag,
Map<String,String> attributes,
Map<String,String> filterAttributes)
Returns the value between the tags as String array. |
|
static String[] |
extractStringArrayForTag(StringBuffer source,
String tag)
Returns the value between the tags as String array. |
|
static String |
extractStringForTag(StringBuffer source,
String tag)
Returns the value between the tags as String . |
|
protected static StringBuffer |
getBooleanArrayWithTags(boolean[] b)
Encodes a boolean array. |
|
protected static StringBuffer |
getByteArrayWithTags(byte[] b)
Encodes a byte array. |
|
protected static StringBuffer |
getDoubleArrayWithTags(double[] d)
Encodes a double array. |
|
protected static StringBuffer |
getIntArrayWithTags(int[] i)
Encodes an int array. |
|
protected static StringBuffer |
getStorableArrayWithTags(Storable[] s)
Encodes a Storable array. |
|
protected static StringBuffer |
getStringArrayWithTags(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
between tag
start and end tags.
source
- the XML-code containing start and end tagtag
- the tag (without angle brackets)
StringBuffer
NonParsableException
- if start or end tag could not be foundpublic static StringBuffer extractForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
source
between tag
start and end tags.
If attributes
is not null
, the attributes of the start tag are added to this Map
.
If filterAttributes
is not null
, the start tag is accepted only if its attributes and associated values contain those defined in filterAttributed
.
source
- the XML-code containing start and end tagtag
- the tag (without angle brackets)attributes
- a Map
for attributes and values, or null
if no attributes should be parsed.filterAttributes
- a Map
of attributes and associated values, which must be present in the attributes of the start tag, or null
for no filtering
StringBuffer
NonParsableException
- if start or end tag could not be foundpublic static boolean extractBooleanForTag(StringBuffer source, String tag) throws NonParsableException
boolean
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
boolean
NonParsableException
- if the value could not be parsedextractBooleanAndAttributesForTag(StringBuffer, String, Map, Map)
public static boolean extractBooleanAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
boolean
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
boolean
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static byte extractByteForTag(StringBuffer source, String tag) throws NonParsableException
byte
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
byte
NonParsableException
- if the value could not be parsedextractByteAndAttributesForTag(StringBuffer, String, Map, Map)
public static byte extractByteAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
byte
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
byte
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static <T extends Enum<T>> T extractEnumForTag(StringBuffer source, String tag) throws NonParsableException
Enum
.
T
- the type of the Enum
objectssource
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
Enum
NonParsableException
- if the enumeration could not be parsedextractEnumAndAttributesForTag(StringBuffer, String, Map, Map)
public static <T extends Enum<T>> T extractEnumAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
Enum
.
T
- the type of the Enum
objectssource
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
Enum
NonParsableException
- if the enumeration could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static int extractIntForTag(StringBuffer source, String tag) throws NonParsableException
int
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
int
NonParsableException
- if the value could not be parsedextractIntAndAttributesForTag(StringBuffer, String, Map, Map)
public static int extractIntAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
int
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
int
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static long extractLongForTag(StringBuffer source, String tag) throws NonParsableException
long
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
long
NonParsableException
- if the value could not be parsedextractLongAndAttributesForTag(StringBuffer, String, Map, Map)
public static long extractLongAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
long
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
long
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static double extractDoubleForTag(StringBuffer source, String tag) throws NonParsableException
double
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
double
NonParsableException
- if the value could not be parsedextractDoubleAndAttributesForTag(StringBuffer, String, Map, Map)
public static double extractDoubleAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
double
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
double
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static Storable extractStorableForTag(StringBuffer source, String tag) throws NonParsableException
Storable
or null
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
Storable
NonParsableException
- if the value could not be parsedextractStorableAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable extractStorableAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
Storable
or null
. The concrete class of the Storable
is inferred from the XML.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
Storable
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable extractStorableForTag(StringBuffer source, String tag, Class<? extends Storable> clazz) throws NonParsableException
Storable
or null
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenclazz
- the concrete class of the Storable
, can be null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class without checking whether it is possible. This might
result in an NonParsableException
Storable
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable extractStorableAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes, Class<? extends Storable> clazz) throws NonParsableException
Storable
or null
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tagsclazz
- the concrete class of the Storable
, can be null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class without checking whether it is possible. This might
result in an NonParsableException
Storable
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static String extractStringForTag(StringBuffer source, String tag) throws NonParsableException
String
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
String
NonParsableException
- if the value could not be parsedextractStringAndAttributesForTag(StringBuffer, String, Map, Map)
public static String extractStringAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
String
.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
String
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
public static boolean[] extractBooleanArrayForTag(StringBuffer source, String tag) throws NonParsableException
boolean
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
boolean
array
NonParsableException
- if the value could not be parsedextractBooleanAndAttributesForTag(StringBuffer, String, Map, Map)
public static boolean[] extractBooleanArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
boolean
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
boolean
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractBooleanAndAttributesForTag(StringBuffer, String, Map, Map)
public static byte[] extractByteArrayForTag(StringBuffer source, String tag) throws NonParsableException
byte
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
byte
array
NonParsableException
- if the value could not be parsedextractByteAndAttributesForTag(StringBuffer, String, Map, Map)
public static byte[] extractByteArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
byte
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
byte
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractByteAndAttributesForTag(StringBuffer, String, Map, Map)
public static int[] extractIntArrayForTag(StringBuffer source, String tag) throws NonParsableException
int
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
int
array
NonParsableException
- if the value could not be parsedextractIntArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static int[] extractIntArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
int
array.
source
- the source StringBuffer
tag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
int
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractIntAndAttributesForTag(StringBuffer, String, Map, Map)
public static double[] extractDoubleArrayForTag(StringBuffer source, String tag) throws NonParsableException
double
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
double
array
NonParsableException
- if the value could not be parsedextractDoubleArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static double[] extractDoubleArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
double
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
double
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractDoubleAndAttributesForTag(StringBuffer, String, Map, Map)
public static Storable[] extractStorableArrayForTag(StringBuffer source, String tag) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
Storable
array
NonParsableException
- if the value could not be parsedextractStorableArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
,
ArrayHandler.cast(Object...)
public static Storable[] extractStorableArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
,
ArrayHandler.cast(Object...)
public static Storable[] extractStorableArrayForTag(StringBuffer source, String tag, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenclazz
- the concrete class of the elements of the array, can be null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class without checking whether it is possible. This might
result in an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[] extractStorableArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tagsclazz
- the concrete class of the elements of the array, can be null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class without checking whether it is possible. This might
result in an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableAndAttributesForTag(StringBuffer, String, Map, Map)
public static String[] extractStringArrayForTag(StringBuffer source, String tag) throws NonParsableException
String
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
String
array
NonParsableException
- if the value could not be parsedextractStringArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static String[] extractStringArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
String
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
String
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStringAndAttributesForTag(StringBuffer, String, Map, Map)
public 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 the value shall be taken
Storable
array
NonParsableException
- if the value could not be parsedextractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][] extractStorable2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][] extractStorable2ArrayForTag(StringBuffer source, String tag, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenclazz
- the concrete class of the elements of the array, can be
null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class
without checking whether it is possible. This might result in
an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer,
String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][] extractStorable2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the
tagfilterAttributes
- a Map
which defines a filter for the tagsclazz
- the concrete class of the elements of the array, can be
null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class
without checking whether it is possible. This might result in
an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorableArrayAndAttributesForTag(StringBuffer,
String, Map, Map)
public 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 the value shall be taken
Storable
array
NonParsableException
- if the value could not be parsedextractStorable3ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorable3ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][][] extractStorable3ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorable3ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][][] extractStorable3ArrayForTag(StringBuffer source, String tag, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenclazz
- the concrete class of the elements of the array, can be
null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class
without checking whether it is possible. This might result in
an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
,
extractStorable3ArrayAndAttributesForTag(StringBuffer, String, Map, Map, Class)
public static Storable[][][] extractStorable3ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes, Class<? extends Storable> clazz) throws NonParsableException
Storable
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tagsclazz
- the concrete class of the elements of the array, can be
null
then the class is inferred from the XML,
otherwise it is tried to create an instance of the class
without checking whether it is possible. This might result in
an NonParsableException
Storable
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStorable2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static boolean[][] extractBoolean2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
boolean
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
boolean
array
NonParsableException
- if the value could not be parsedextractBoolean2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static boolean[][] extractBoolean2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
boolean
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
boolean
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractBooleanArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static byte[][] extractByte2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
byte
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
byte
array
NonParsableException
- if the value could not be parsedextractByte2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static byte[][] extractByte2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
byte
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
byte
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractByteArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static int[][] extractInt2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
int
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
int
array
NonParsableException
- if the value could not be parsedextractInt2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static int[][] extractInt2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
int
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
int
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractIntArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static double[][] extractDouble2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
double
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
double
array
NonParsableException
- if the value could not be parsedextractDouble2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static double[][] extractDouble2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
double
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
double
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractDoubleArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static String[][] extractString2ArrayForTag(StringBuffer source, String tag) throws NonParsableException
String
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be taken
String
array
NonParsableException
- if the value could not be parsedextractString2ArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static String[][] extractString2ArrayAndAttributesForTag(StringBuffer source, String tag, Map<String,String> attributes, Map<String,String> filterAttributes) throws NonParsableException
String
array.
source
- the source StringBuffer
that should be decoded from
XMLtag
- the tags between which the value shall be takenattributes
- a Map
which can be used to obtain the attribute of the tagfilterAttributes
- a Map
which defines a filter for the tags
String
array
NonParsableException
- if the value could not be parsedextractForTag(StringBuffer, String, Map, Map)
,
extractStringArrayAndAttributesForTag(StringBuffer, String, Map, Map)
public static void addTags(StringBuffer source, String tag)
StringBuffer
source
with equal tags
"< tag
>" and "</tag
>".
source
- the source StringBuffer
that should be encoded in XMLtag
- the tags by which the StringBuffer
should be framedaddTagsAndAttributes(StringBuffer, String, String)
public static void addTagsAndAttributes(StringBuffer source, String tag, String attributes)
StringBuffer
source
with "<
tag attributes
>" and "</tag
>".
source
- the source StringBuffer
that should be encoded in XMLtag
- the tags by which the StringBuffer
should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendBooleanWithTags(StringBuffer source, boolean b, String tag)
boolean
value with equal tags to the
StringBuffer
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 framedappendBooleanWithTagsAndAttributes(StringBuffer, boolean, String, String)
public static void appendBooleanWithTagsAndAttributes(StringBuffer source, boolean b, String tag, String attributes)
boolean
value with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>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 framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendByteWithTags(StringBuffer source, byte b, String tag)
byte
value with equal tags to the
StringBuffer
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 framedappendByteWithTagsAndAttributes(StringBuffer, byte, String, String)
public static void appendByteWithTagsAndAttributes(StringBuffer source, byte b, String tag, String attributes)
byte
value with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>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 framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static <T extends Enum<T>> void appendEnumWithTags(StringBuffer source, Enum<T> e, String tag)
Enum
object with equal tags to the
StringBuffer
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 framedappendEnumWithTagsAndAttributes(StringBuffer, Enum, String, String)
public static <T extends Enum<T>> void appendEnumWithTagsAndAttributes(StringBuffer source, Enum<T> e, String tag, String attributes)
Enum
object with the tags to the
StringBuffer
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendStringWithTagsAndAttributes(StringBuffer, String, String, String)
public static void appendIntWithTags(StringBuffer source, int i, String tag)
int
value with equal tags to the
StringBuffer
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 framedappendIntWithTagsAndAttributes(StringBuffer, int, String, String)
public static void appendIntWithTagsAndAttributes(StringBuffer source, int i, String tag, String attributes)
int
value with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>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 framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendLongWithTags(StringBuffer source, long i, String tag)
long
value with equal tags to the
StringBuffer
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 framedappendLongWithTagsAndAttributes(StringBuffer, long, String, String)
public static void appendLongWithTagsAndAttributes(StringBuffer source, long l, String tag, String attributes)
long
value with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>i
</tag
>".
source
- the source StringBuffer
that should be encoded in XMLl
- the value that should be framed by the tags and
appended to the sourcetag
- the tags by which the value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendDoubleWithTags(StringBuffer source, double d, String tag)
double
value with equal tags to the
StringBuffer
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 sourcetag
- the tags by which the value should be framedappendDoubleWithTagsAndAttributes(StringBuffer, double, String, String)
public static void appendDoubleWithTagsAndAttributes(StringBuffer source, double d, String tag, String attributes)
double
value with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>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 sourcetag
- the tags by which the value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendStorableWithTags(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 value should be framedappendStorableWithTagsAndAttributes(StringBuffer, Storable,
String, String)
public static void appendStorableWithTagsAndAttributes(StringBuffer source, Storable s, String tag, String attributes)
Storable
object or "null" with the
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
public static void appendStringWithTags(StringBuffer source, String s, String tag)
String
with equal tags to the StringBuffer
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 sourcetag
- the tags by which the value should be framedappendStringWithTagsAndAttributes(StringBuffer, String, String, String)
public static void appendStringWithTagsAndAttributes(StringBuffer source, String s, String tag, String attributes)
String
with the tags to the
StringBuffer
source
in the following way: "<
tag attributes
>s
</tag
>".
source
- the source StringBuffer
that should be encoded in XMLs
- the value that should be framed by the tags and
appended to the sourcetag
- the tags by which the value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
protected static StringBuffer getByteArrayWithTags(byte[] b)
byte
array. The encoding is the following way:
b
- the array that should be encoded
StringBuffer
representing the encoded arrayappendByteWithTagsAndAttributes(StringBuffer, byte, String, String)
protected static StringBuffer getIntArrayWithTags(int[] i)
int
array. The encoding is like in
getByteArrayWithTags(byte[])
.
i
- the array that should be encoded
StringBuffer
representing the encoded arraygetByteArrayWithTags(byte[])
,
appendIntWithTagsAndAttributes(StringBuffer, int, String, String)
protected static StringBuffer getDoubleArrayWithTags(double[] d)
double
array. The encoding is like in
getByteArrayWithTags(byte[])
.
d
- the array that should be encoded
StringBuffer
representing the encoded arraygetByteArrayWithTags(byte[])
,
appendDoubleWithTagsAndAttributes(StringBuffer, double, String, String)
protected static StringBuffer getBooleanArrayWithTags(boolean[] b)
boolean
array. The encoding is like in
getByteArrayWithTags(byte[])
.
b
- the array that should be encoded
StringBuffer
representing the encoded arraygetByteArrayWithTags(byte[])
,
appendBooleanWithTagsAndAttributes(StringBuffer, boolean, String,
String)
protected static StringBuffer getStringArrayWithTags(String[] s)
String
array. The encoding is like in
getByteArrayWithTags(byte[])
.
s
- the array that should be encoded
StringBuffer
representing the encoded arraygetByteArrayWithTags(byte[])
,
appendStringWithTagsAndAttributes(StringBuffer, String, String, String)
protected static StringBuffer getStorableArrayWithTags(Storable[] s)
Storable
array. The encoding is like in
getByteArrayWithTags(byte[])
.
s
- the Storable
object that should be encoded
StringBuffer
representing the encoded Storable
objectgetByteArrayWithTags(byte[])
,
appendStorableWithTagsAndAttributes(StringBuffer, Storable, String,
String)
public static void appendBooleanArrayWithTags(StringBuffer source, boolean[] b, String tag)
boolean
array with equal tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedappendBooleanArrayWithTagsAndAttributes(StringBuffer, boolean[],
String, String)
public static void appendBooleanArrayWithTagsAndAttributes(StringBuffer source, boolean[] b, String tag, String attributes)
boolean
array with the tags to
the StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
getBooleanArrayWithTags(boolean[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendByteArrayWithTags(StringBuffer source, byte[] b, String tag)
byte
array with equal tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedappendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
public static void appendByteArrayWithTagsAndAttributes(StringBuffer source, byte[] b, String tag, String attributes)
byte
array with the tags to the
StringBuffer
source
. The encoding is this way: tag attributes
> <length>b.length</length> /tag
>.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
getByteArrayWithTags(byte[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendIntArrayWithTags(StringBuffer source, int[] i, String tag)
int
array with equal tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 framedappendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
appendIntArrayWithTagsAndAttributes(StringBuffer, int[], String,
String)
public static void appendIntArrayWithTagsAndAttributes(StringBuffer source, int[] i, String tag, String attributes)
int
array with the tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
getIntArrayWithTags(int[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendDoubleArrayWithTags(StringBuffer source, double[] d, String tag)
double
array with equal tags to the
StringBuffer
source
. The encoding is like in like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 framedappendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
appendDoubleArrayWithTagsAndAttributes(StringBuffer, double[], String,
String)
public static void appendDoubleArrayWithTagsAndAttributes(StringBuffer source, double[] d, String tag, String attributes)
double
array with the tags to
the StringBuffer
source
. The encoding is like in
like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
getDoubleArrayWithTags(double[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendStorableArrayWithTags(StringBuffer source, Storable[] s, String tag)
Storable
array with equal tags to the
StringBuffer
source
. The encoding is like in like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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
framedappendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
appendStorableArrayWithTagsAndAttributes(StringBuffer, Storable[],
String, String)
public static void appendStorableArrayWithTagsAndAttributes(StringBuffer source, Storable[] s, String tag, String attributes)
Storable
array with the tags to the
StringBuffer
source
. The encoding is like in like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
getStorableArrayWithTags(Storable[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendStringArrayWithTags(StringBuffer source, String[] s, String tag)
String
array with equal tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 framedappendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
appendStringArrayWithTagsAndAttributes(StringBuffer, String[], String,
String)
public static void appendStringArrayWithTagsAndAttributes(StringBuffer source, String[] s, String tag, String attributes)
String
array with the tags to the
StringBuffer
source
. The encoding is like in
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByteArrayWithTagsAndAttributes(StringBuffer, byte[], String,
String)
,
getStringArrayWithTags(String[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendBoolean2ArrayWithTags(StringBuffer source, boolean[][] i, String tag)
boolean
array with equal
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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
framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendBoolean2ArrayWithTagsAndAttributes(StringBuffer, boolean[][],
String, String)
public static void appendBoolean2ArrayWithTagsAndAttributes(StringBuffer source, boolean[][] i, String tag, String attributes)
boolean
array with the
tags to the StringBuffer
source
. The encoding
is like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendBooleanWithTags(StringBuffer, boolean, String)
,
getBooleanArrayWithTags(boolean[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendByte2ArrayWithTags(StringBuffer source, byte[][] b, String tag)
byte
array with equal
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
source
- the source StringBuffer
that should be encoded in XMLb
- the two dimensional array that should be encoded and appended
to the source framed by the tagstag
- the tags by which the value should be framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
public static void appendByte2ArrayWithTagsAndAttributes(StringBuffer source, byte[][] b, String tag, String attributes)
byte
array with the
tags to the StringBuffer
source
. The encoding is
the following way:
source
- the source StringBuffer
that should be encoded in XMLb
- the two dimensional array that should be encoded and appended
to the source framed by the tagstag
- the tags by which the value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendIntWithTags(StringBuffer, int, String)
,
getByteArrayWithTags(byte[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendInt2ArrayWithTags(StringBuffer source, int[][] i, String tag)
int
array with equal tags
to the StringBuffer
source
. The encoding is like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendInt2ArrayWithTagsAndAttributes(StringBuffer, int[][], String,
String)
public static void appendInt2ArrayWithTagsAndAttributes(StringBuffer source, int[][] i, String tag, String attributes)
int
array with the
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendIntWithTags(StringBuffer, int, String)
,
getIntArrayWithTags(int[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendDouble2ArrayWithTags(StringBuffer source, double[][] d, String tag)
double
array with equal
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendDouble2ArrayWithTagsAndAttributes(StringBuffer, double[][],
String, String)
public static void appendDouble2ArrayWithTagsAndAttributes(StringBuffer source, double[][] d, String tag, String attributes)
double
array with the
tags to the StringBuffer
source
. The encoding
is like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendIntWithTags(StringBuffer, int, String)
,
getDoubleArrayWithTags(double[])
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendStorable2ArrayWithTags(StringBuffer source, Storable[][] s, String tag)
Storable
array with equal tags
to the StringBuffer
source
. The encoding is like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
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 value should be framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendStorable2ArrayWithTagsAndAttributes(StringBuffer, Storable[][],
String, String)
public static void appendStorable2ArrayWithTagsAndAttributes(StringBuffer source, Storable[][] s, String tag, String attributes)
Storable
array with the
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendIntWithTags(StringBuffer, int, String)
,
getStorableArrayWithTags(Storable[])
,
addTagsAndAttributes(StringBuffer, String, String)
public 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 value should be framedappendStorable3ArrayWithTagsAndAttributes(StringBuffer, Storable[][][],
String, String)
public static void appendStorable3ArrayWithTagsAndAttributes(StringBuffer source, Storable[][][] s, String tag, String attributes)
Storable
array with the
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendIntWithTags(StringBuffer, int, String)
,
appendStorable2ArrayWithTagsAndAttributes(StringBuffer, Storable[][],
String, String)
,
addTagsAndAttributes(StringBuffer, String, String)
public static void appendString2ArrayWithTags(StringBuffer source, String[][] s, String tag)
String
array with equal tags
to the StringBuffer
source
. The encoding is like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedappendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendString2ArrayWithTagsAndAttributes(StringBuffer, String[][],
String, String)
public static void appendString2ArrayWithTagsAndAttributes(StringBuffer source, String[][] s, String tag, String attributes)
String
array with the
tags to the StringBuffer
source
. The encoding is
like in
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String, String)
.
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 value should be framedattributes
- null or some attributes, i.e. value="100" confidence="0"
- See Also:
appendByte2ArrayWithTagsAndAttributes(StringBuffer, byte[][], String,
String)
,
appendIntWithTags(StringBuffer, int, String)
,
getStringArrayWithTags(String[])
,
addTagsAndAttributes(StringBuffer, String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |