public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
beginDocument(org.xmlpull.v1.XmlPullParser parser,
String firstElementName) |
static boolean |
convertValueToBoolean(CharSequence value,
boolean defaultValue) |
static int |
convertValueToInt(CharSequence charSeq,
int defaultValue) |
static int |
convertValueToList(CharSequence value,
String[] options,
int defaultValue) |
static int |
convertValueToUnsignedInt(String value,
int defaultValue) |
static void |
nextElement(org.xmlpull.v1.XmlPullParser parser) |
static boolean |
nextElementWithin(org.xmlpull.v1.XmlPullParser parser,
int outerDepth) |
static int |
parseUnsignedIntAttribute(CharSequence charSeq) |
static ArrayList |
readListXml(InputStream in) |
static HashMap |
readMapXml(InputStream in) |
static HashSet |
readSetXml(InputStream in) |
static int[] |
readThisIntArrayXml(org.xmlpull.v1.XmlPullParser parser,
String endTag,
String[] name) |
static ArrayList |
readThisListXml(org.xmlpull.v1.XmlPullParser parser,
String endTag,
String[] name) |
static HashMap |
readThisMapXml(org.xmlpull.v1.XmlPullParser parser,
String endTag,
String[] name) |
static HashSet |
readThisSetXml(org.xmlpull.v1.XmlPullParser parser,
String endTag,
String[] name) |
static Object |
readValueXml(org.xmlpull.v1.XmlPullParser parser,
String[] name) |
static void |
skipCurrentTag(org.xmlpull.v1.XmlPullParser parser) |
static void |
writeByteArrayXml(byte[] val,
String name,
org.xmlpull.v1.XmlSerializer out) |
static void |
writeIntArrayXml(int[] val,
String name,
org.xmlpull.v1.XmlSerializer out) |
static void |
writeListXml(List val,
OutputStream out) |
static void |
writeListXml(List val,
String name,
org.xmlpull.v1.XmlSerializer out) |
static void |
writeMapXml(Map val,
OutputStream out) |
static void |
writeMapXml(Map val,
String name,
org.xmlpull.v1.XmlSerializer out) |
static void |
writeSetXml(Set val,
String name,
org.xmlpull.v1.XmlSerializer out) |
static void |
writeValueXml(Object v,
String name,
org.xmlpull.v1.XmlSerializer out) |
public static final void beginDocument(org.xmlpull.v1.XmlPullParser parser,
String firstElementName)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final boolean convertValueToBoolean(CharSequence value, boolean defaultValue)
public static final int convertValueToInt(CharSequence charSeq, int defaultValue)
public static final int convertValueToList(CharSequence value, String[] options, int defaultValue)
public static final int convertValueToUnsignedInt(String value, int defaultValue)
public static final void nextElement(org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static boolean nextElementWithin(org.xmlpull.v1.XmlPullParser parser,
int outerDepth)
throws IOException,
org.xmlpull.v1.XmlPullParserException
IOExceptionorg.xmlpull.v1.XmlPullParserExceptionpublic static final int parseUnsignedIntAttribute(CharSequence charSeq)
public static final ArrayList readListXml(InputStream in) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final HashMap readMapXml(InputStream in) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final HashSet readSetXml(InputStream in) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final int[] readThisIntArrayXml(org.xmlpull.v1.XmlPullParser parser,
String endTag,
String[] name)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final ArrayList readThisListXml(org.xmlpull.v1.XmlPullParser parser, String endTag, String[] name) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final HashMap readThisMapXml(org.xmlpull.v1.XmlPullParser parser, String endTag, String[] name) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final HashSet readThisSetXml(org.xmlpull.v1.XmlPullParser parser, String endTag, String[] name) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final Object readValueXml(org.xmlpull.v1.XmlPullParser parser, String[] name) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static void skipCurrentTag(org.xmlpull.v1.XmlPullParser parser)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeByteArrayXml(byte[] val,
String name,
org.xmlpull.v1.XmlSerializer out)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeIntArrayXml(int[] val,
String name,
org.xmlpull.v1.XmlSerializer out)
throws org.xmlpull.v1.XmlPullParserException,
IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeListXml(List val, OutputStream out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeListXml(List val, String name, org.xmlpull.v1.XmlSerializer out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeMapXml(Map val, OutputStream out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeMapXml(Map val, String name, org.xmlpull.v1.XmlSerializer out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeSetXml(Set val, String name, org.xmlpull.v1.XmlSerializer out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic static final void writeValueXml(Object v, String name, org.xmlpull.v1.XmlSerializer out) throws org.xmlpull.v1.XmlPullParserException, IOException
org.xmlpull.v1.XmlPullParserExceptionIOExceptionCopyright © 2012-2013. All Rights Reserved.