Changeset 8805 for lang/scala

Show
Ignore:
Timestamp:
04/03/08 23:27:38 (8 months ago)
Author:
kmizu
Message:

add comments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/scala/sandbox/src/jp/gr/java_conf/mizu/io/IO.scala

    r7114 r8805  
    3030    } 
    3131 
    32     override def next :byte = read.asInstanceOf[byte] 
     32    override def next() :byte = read.asInstanceOf[byte] 
    3333 
    3434    def >>(out :OutputStream) :unit = for(b <- this) out.write(b) 
    3535 
    36     def readAll :Array[byte] = { 
     36    /** 
     37     * Read all contents from the input stream. 
     38     * @return contents as an array of bytes. 
     39     */ 
     40    def readAll() :Array[byte] = { 
    3741      var b = new ArrayBuffer[byte] 
    3842      each(this)(i => b += i.asInstanceOf[byte]) 
     
    4953    } 
    5054 
    51     override def next :char = read.asInstanceOf[char] 
     55    override def next() :char = read.asInstanceOf[char] 
    5256 
    5357    def >>(out :Writer) :unit = for(b <- this) out.write(b)