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

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -