-------- Original Message --------

Subject:  Re: getResourceAsStream(java.lang.String path)
Date:  Thu, 13 Jun 2002 16:34:51 +0530
From:  [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]

 

But still iam getting the same result

Is there any wrong in my code ?

                        InputStream in = context.getResourceAsStream("/WEB-INF/Test.txt");
                        InputStreamReader ir = new InputStreamReader(in,US-ASCII);
                        while((ch = ir.read())!= -1)
                                System.out.print(ch);

----- Forwarded by Jwas J/IBS on 06/13/02 04:27 PM -----

Ronald Wildenberg <[EMAIL PROTECTED]>
Sent by: "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology." <[EMAIL PROTECTED]>

06/13/02 03:33 PM
Please respond to "A mailing list for discussion about Sun Microsystem's Java Servlet API Technology."


        To:        [EMAIL PROTECTED]
        cc: 
        Subject:        Re: getResourceAsStream(java.lang.String path)

 

You can get a character stream (= Reader) by using java.io.InputStreamReader.

Ronald.
 

"[Jwas J]" wrote:
Hello

Can anyone tell me where is "getResourceAsStream(java.lang.String path)" is used .

We only get byte stream right ? Is there any way to get character stream.

Regards
Jwas

Reply via email to