看看这句话:
int java.io.InputStream.available()available
public int available()
throws IOException
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or or another thread.
The available method for class InputStream always returns 0. This method should be overridden by subclasses.
Returns:
the number of bytes that can be read from this input stream without blocking.
Throws:
IOException - if an I/O error occurs.
int java.io.InputStream.available()available
public int available()
throws IOException
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. The next caller might be the same thread or or another thread.
The available method for class InputStream always returns 0. This method should be overridden by subclasses.
Returns:
the number of bytes that can be read from this input stream without blocking.
Throws:
IOException - if an I/O error occurs.
解决方案 »
- SSH整合的问题,折腾死我了,求大神指教一下吧!!
- 问下MyEclipse 7.5中的字体问题
- mm求救- struts2 标签问题
- 寻struts、spring、hibernate视频教程
- SQL Server 2005 Driver for jdbc 连接数据库时出现异常,不知怎么办?请各位大侠给于帮助!十分感谢!
- Tomcat的SSL发布问题!
- 欢迎测评一下我的网站美工如何
- 如何在CSDN发表自己的帖子?
- weblogic+jbuilder2005如何单步调试EJB,有文档,请高手翻译一下
- 关于SpringCloud搭建云平台的一些疑惑
- 初学AXIS,请问客户端如何访问到服务端,调用其方法和传递参数
- 一台服务器多个web服务器的配置(apache+tomcat)500分求解
available的意思是在不阻塞的情况下有多少数据可以读取而已,也就是对方已经发送了多少数据给你,但是无法知道还有多少没有发送过来