Changeset 8805 for lang/scala
- Timestamp:
- 04/03/08 23:27:38 (8 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/scala/sandbox/src/jp/gr/java_conf/mizu/io/IO.scala
r7114 r8805 30 30 } 31 31 32 override def next :byte = read.asInstanceOf[byte]32 override def next() :byte = read.asInstanceOf[byte] 33 33 34 34 def >>(out :OutputStream) :unit = for(b <- this) out.write(b) 35 35 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] = { 37 41 var b = new ArrayBuffer[byte] 38 42 each(this)(i => b += i.asInstanceOf[byte]) … … 49 53 } 50 54 51 override def next :char = read.asInstanceOf[char]55 override def next() :char = read.asInstanceOf[char] 52 56 53 57 def >>(out :Writer) :unit = for(b <- this) out.write(b)
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)