我解析网页源码, 可是有用的数据都在后面,前面的数据都没有用但是后面的数据貌似都被省略了 用....表示的,。 我把返回的数据写在一个txt文件,可以全部显示。而我用bytearrayoutputstream 方法就不行,是不是这个这方法写入内存数据 有限制?? 部分代码:
BufferedInputStream bis = new BufferedInputStream(instream);
                ByteArrayOutputStream bos = new ByteArrayOutputStream(1024);
                int len = 0;
                byte[] buffer = new byte[1024*4];
                while((len=bis.read(buffer))!=-1){
                        bos.write(buffer, 0, len);
                }
               String str = new String(bos.toByteArray());
 
得到str 数据不完全,显示一定量后,后面就省略了。。怎么解决???