Posted By:
yakhub_pasha
Posted On:
Monday, March 2, 2009 12:49 PM
In my application we are receiving XML in the form of Stream.i.e InputStream.
After receiving we have to pass the InputStream object to other method to parse the XML .As this data is presiding with the blank space the method is throwing Exception.
If i am converting
Stream to String to trim
Trimmed String to Stream---> pass to parser the data
it is throwing Memory out of bound Exception because XML is very large.
FYI -->inputStream.markSupported() method is returning false