getChannel是jdk 1.4里面新加的NIO里面的东西用于非阻塞式IO,可以理解成端口复用,在一个端口上打开多个频道

解决方案 »

  1.   

    getChannel
    public FileChannel getChannel()
    Returns the unique FileChannel object associated with this file output stream. The initial position of the returned channel will be equal to the number of bytes written to the file so far unless this stream is in append mode, in which case it will be equal to the size of the file. Writing bytes to this stream will increment the channel's position accordingly. Changing the channel's position, either explicitly or by writing, will change this stream's file position. 
    Returns:
    the file channel associated with this file output stream
    Since: 
    1.4 
      

  2.   

    一.java 2 sdk help chm格式,可以进行索引查询,强推。
    http://javadocs.planetmirror.com/dist/jdk142-hh.zip