当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·河南的高程同仁请注意    »显示摘要«
    摘要: 高程是什么时候报名?在什么地方?要多少钱有没有人知道呀我在洛阳!!! ......
    摘要: 以下为表结构的抓图 http://www.cnyu.net/bbs/uploadimages/20034161944547733.gif 其中的关系为(举例):a-企业-部门-地区 要生成的树的样式为: 企业 -企业性质 -企业类型 -重点企业 -全口径 -部门 -地区 国别 -洲 -国际组织 ......


BufferedInputStream是什么呀

有下面这样一个程序,我想看它的运行结果,可是编译时说BufferedInputStream出错!咋办呢?请高手指教!  
  import   java.lang.*;  
  import   java.io.*;  
   
  class   MarkReset  
  {       public   static   void   main(String   args[])  
  {     int   i;  
  byte[]   aByteArray={A,B,C,D,E,F,G,H};  
  InputStream   inputS=new   BufferedInputStream(   new   ByteBufferedInputStream(aByteArray));  
  try{  
          System.out.println(inputS.markSupported());  
          System.out.println("\taByteArray:");  
          for(i=0;i<2;i++)  
          System.out.println((char)inputS.read());  
          inputS.mark(aByteArray.length);  
  for(i=0;i<3;i++)  
  System.out.println((char)inputS.read());  
  inputS.reset();  
  System.out.println();  
  for(i=0;i<6;i++)  
  System.out.println((char)inputS.read());  
  System.out.println();  
  }  
  finally{inputS.close();}  
  }  
  }

NO.1   作者: qhgary

A   BufferedInputStream   adds   functionality   to   another   input   stream-namely,   the   ability   to   buffer   the   input   and   to   support   the   mark   and   reset   methods.   When   the   BufferedInputStream   is   created,   an   internal   buffer   array   is   created.   As   bytes   from   the   stream   are   read   or   skipped,   the   internal   buffer   is   refilled   as   necessary   from   the   contained   input   stream,   many   bytes   at   a   time.   The   mark   operation   remembers   a   point   in   the   input   stream   and   the   reset   operation   causes   all   the   bytes   read   since   the   most   recent   mark   operation   to   be   reread   before   new   bytes   are   taken   from   the   contained   input   stream.

NO.2   作者: li_haizhou

ByteBufferedInputStream写错了,应该是ByteArrayInputStream

NO.3   作者: newman0708

datainputstream   以它的方法使用简单,方法多样而见长。  
   
  BufferedInputStream主要以它的速度快见长,主要用于读取文件,或者是网络上流等,它的功能很强,你多用,它还能你解决一些中文问题,而datainputstream   可能就不行,一定要自己给它限定   iso81890才可以。   尤其要数据库中文中,应该会遇到(mysql).

NO.4   作者: promote

BufferedInputStream是一个缓冲的输入流,它可以一次容纳一部分输入信息然后执行操作,它是建立在一个InputSteam   对象的基础上的.

NO.5   作者: DavidBone

up


 ·二个关于asp的问题(在线等待)    »显示摘要«
    摘要: 1.请问如何能得到asp3.0的版本,window2000带的是不是asp2.0的版本呀? 2.最近我用自己开发了一个三层结构的几乎用动态链接库来实现的,请问这样做有什么不良后果吗?因为现在我所碰到的网站都没有怎么用动态链接库!谢谢各位多来意见! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE