AbstractFileReader

final class AbstractFileReader(val buf: Array[Byte]) extends DataReader

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

Authors:

Philippe Altherr

Version:

1.0, 23/03/2004

class Object
trait Matchable
class Any

Value members

Constructors

def this(file: AbstractFile)

Concrete methods

@throws(scala.Predef.classOf[scala.IndexOutOfBoundsException])
def byteAt(pos: Int): Byte

return byte at offset 'pos'

return byte at offset 'pos'

def getByte(mybp: Int): Byte

extract a byte at position bp from buf

extract a byte at position bp from buf

def getBytes(mybp: Int, bytes: Array[Byte]): Unit
def getChar(mybp: Int): Char

extract a character at position bp from buf

extract a character at position bp from buf

def getDouble(mybp: Int): Double

extract a double at position bp from buf

extract a double at position bp from buf

def getFloat(mybp: Int): Float

extract a float at position bp from buf

extract a float at position bp from buf

def getInt(mybp: Int): Int

extract an integer at position bp from buf

extract an integer at position bp from buf

def getLong(mybp: Int): Long

extract a long integer at position bp from buf

extract a long integer at position bp from buf

def getUTF(mybp: Int, len: Int): String
@throws(scala.Predef.classOf[scala.IndexOutOfBoundsException])

read a byte

read a byte

def nextBytes(len: Int): Array[Byte]

read some bytes

read some bytes

read a character

read a character

read an integer

read an integer

def skip(n: Int): Unit

skip next 'n' bytes

skip next 'n' bytes

Concrete fields

var bp: Int

the current input pointer

the current input pointer

val buf: Array[Byte]