Friday, August 26, 2005 07:38 AM
I have an InputStream of the message containing both binary and ASCII datas.
I would like to scan through the InputStream to find if it contains a certain String. I was thinking about converting the String to a byte-Array and to scan through the byte-Array gained of the InputStream in order to replace the matching bytes with a new String. I can't transform the InputStream in a String because in this case the binary datas may be corrupted by converting them back in bytes.
Does somebody know a Utility class /methods or an alternative for these purposes?
Thanks a lot in advance & regards,
Re: finding a String in the InputStream of the message
Monday, August 29, 2005 11:23 AM