finding a String in the InputStream of the message
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ulrich_Heeger
Posted On:   Friday, August 26, 2005 07:38 AM

Hi everyone,
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,
Ulrich

Re: finding a String in the InputStream of the message

Posted By:   Ulrich_Heeger  
Posted On:   Monday, August 29, 2005 11:23 AM

I have solved already this. Please can you help me concerning my new question
About | Sitemap | Contact