[862] in java-interest

home help back first fref pref prev next nref lref last post

Byte buf to string value ?

daemon@ATHENA.MIT.EDU (Chanda Dharap)
Fri Aug 11 23:29:15 1995

Date: Fri, 11 Aug 95 14:18:44 PDT
From: chanda@PRPA.Philips.COM (Chanda Dharap)
To: java-interest@java.sun.com


I've had the most trouble with this.

I'm trying to read clientInput.read(buf,0,buf.length), where
clientInput and clientOutput are of class InputStream.

Next I need to pass contents of "buf" to a method which takes a String
parameter.

Therefore i need a bytebuffer to String converter.
I've tried toString() and valueOf() but nothing works.

What needs to be done ? Can someone point me in the right direction ?

- Chanda Dharap
---------------------
email: chanda@prpa.philips.com
url: http://www.cse.psu.edu/~chanda
---------------------
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post