|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.syncclient.common.SourceUtils
public class SourceUtils
Provide methods to convert XML to HashMap and HashMap to XML
Field Summary | |
---|---|
static java.lang.String |
ROOT_NAME
|
static java.lang.String |
TAG_XML_VERSION
|
Constructor Summary | |
---|---|
SourceUtils()
|
Method Summary | |
---|---|
static java.lang.String |
handleLineDelimiting(java.lang.String content)
This method is used to replace the String "=\r\n" with the String "\r\n ": This replace is necessary because the are devices that doesn't sent the correct line delimiting for long line. |
static java.lang.String |
hashMapToXml(java.util.HashMap fields)
Make xml from an HashMap. |
static java.util.HashMap |
xmlToHashMap(java.io.InputStream is)
Make a HashMap of fieldName - fieldValue tagName -> key tagValue -> value |
static java.util.HashMap |
xmlToHashMap(java.lang.String content)
Make a HashMap of fieldName - fieldValue tagName -> key tagValue -> value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROOT_NAME
public static final java.lang.String TAG_XML_VERSION
Constructor Detail |
---|
public SourceUtils()
Method Detail |
---|
public static java.util.HashMap xmlToHashMap(java.lang.String content) throws java.lang.Exception
content
-
java.lang.Exception
public static java.util.HashMap xmlToHashMap(java.io.InputStream is) throws java.lang.Exception
is
-
java.lang.Exception
public static java.lang.String hashMapToXml(java.util.HashMap fields) throws java.lang.Exception
fields
-
java.lang.Exception
public static java.lang.String handleLineDelimiting(java.lang.String content)
content
- the input content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |