输入流中都有一个available()方法
具体指什么,有什么作用,请大家举列说明一下;

解决方案 »

  1.   

    这种东西自己看api好了available
    public int available()
                  throws IOExceptionReturns 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 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.