input sream does not read the entire dat

when i read the response from the socket connection, it reads only the part of the response.

iS=soc.getInputStream();

BufferedInputStream bufIn = new BufferedInputStream(iS);

BufferedReader inp = new BufferedReader(new InputStreamReader(bufIn));

char[] res=new char[32000];

inp.read(res,0,res.length);

why it reads only a part of the response?

[388 byte] By [saju_jalia] at [2007-11-27 4:30:52]
# 1
http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html#read(byte[],%20int,%20int)
sabre150a at 2007-7-12 9:40:14 > top of Java-index,Core,Core APIs...
# 2
The actual response contains 4300 characters, but it reads only 1380 characters. But i have intialized the array as a maximum number
saju_jalia at 2007-7-12 9:40:14 > top of Java-index,Core,Core APIs...
# 3
So, in the link sabre150 kindly provided, where does it say it will fill the array?
ejpa at 2007-7-12 9:40:14 > top of Java-index,Core,Core APIs...
# 4
Use readFully() from DataInputStream (this will read bytes, so you'll have to convert that to what you need) or manually force it to read the whole thing (if the array is not full, force the reading of the remaining part)...
jadespirita at 2007-7-12 9:40:14 > top of Java-index,Core,Core APIs...