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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -