java - Android: Replace XML entities in InputStream without converting it -
i have inputstream coming internet, using code :
url url = new url(sharedpreferences.getstring("profile" + drawer.getcurrentselectedposition() + "url", "")); httpurlconnection connection = (httpurlconnection)url.openconnection(); connection.setdoinput(true); connection.connect(); bufferedinputstream inputstream = new bufferedinputstream(connection.getinputstream()); what want convert & & in order xml valid , not cause error when parsing. i'd not convert inputstream string (and use string.replaceall()) in order more memory efficient.
is there way ? thanks.
Comments
Post a Comment