Packages

c

scala.tools.nsc.symtab.classfile

AbstractFileReader

class AbstractFileReader extends AnyRef

This class reads files byte per byte. Only used by ClassFileParser

Source
AbstractFileReader.scala
Version

1.0, 23/03/2004

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractFileReader
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractFileReader(file: AbstractFile)

Value Members

  1. var bp: Int

    the current input pointer

  2. val buf: Array[Byte]

    the buffer containing the file

  3. val file: AbstractFile
  4. def getChar(mybp: Int): Char

    extract a character at position bp from buf

  5. def getDouble(mybp: Int): Double

    extract a double at position bp from buf

  6. def getFloat(mybp: Int): Float

    extract a float at position bp from buf

  7. def getInt(mybp: Int): Int

    extract an integer at position bp from buf

  8. def getLong(mybp: Int): Long

    extract a long integer at position bp from buf

  9. def nextByte: Byte

    read a byte

    read a byte

    Annotations
    @throws( classOf[IndexOutOfBoundsException] )
  10. def nextBytes(len: Int): Array[Byte]

    read some bytes

  11. def nextChar: Char

    read a character

  12. def nextInt: Int

    read an integer

  13. def skip(n: Int): Unit

    skip next 'n' bytes