Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cefbc109 authored by Zongheng Wang's avatar Zongheng Wang Committed by android-build-merger
Browse files

Merge "Use the public constructure of FastXmlSerializer"

am: dbd7f827

Change-Id: Id3c1f7961681d1cce104a3fc9497e7718e80ca41
parents 9dd9c516 dbd7f827
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ public class BluetoothMapConvoListing {
     */
    public byte[] encode() throws UnsupportedEncodingException {
        StringWriter sw = new StringWriter();
        XmlSerializer xmlConvoElement = new FastXmlSerializer();
        XmlSerializer xmlConvoElement = new FastXmlSerializer(0);
        try {
            xmlConvoElement.setOutput(sw);
            xmlConvoElement.startDocument("UTF-8", true);
+1 −1
Original line number Diff line number Diff line
@@ -266,7 +266,7 @@ public class BluetoothMapFolderElement implements Comparable<BluetoothMapFolderE

    public byte[] encode(int offset, int count) throws UnsupportedEncodingException {
        StringWriter sw = new StringWriter();
        XmlSerializer xmlMsgElement = new FastXmlSerializer();
        XmlSerializer xmlMsgElement = new FastXmlSerializer(0);
        int i, stopIndex;
        // We need index based access to the subFolders
        BluetoothMapFolderElement[] folders =
+1 −1
Original line number Diff line number Diff line
@@ -103,7 +103,7 @@ public class BluetoothMapMessageListing {
                xmlMsgElement.setOutput(sw);
                xmlMsgElement.text("\n");
            } else {
                xmlMsgElement = new FastXmlSerializer();
                xmlMsgElement = new FastXmlSerializer(0);
                xmlMsgElement.setOutput(sw);
                xmlMsgElement.startDocument("UTF-8", true);
                xmlMsgElement.setFeature(