       resume data
 
   rs = new runtime.RuntimeState(stdout, read_stdin, exports.read_classfile)
-  
+
   if argv.profile
     timings = {}
     call_counts = {}

ClassFile = require '../src/class_file'
methods = require '../src/methods'

exports.read_binary_file = (filename) ->
  return null unless path.existsSync filename
  util.bytestr_to_array fs.readFileSync(filename, 'binary')

exports.read_classfile = (cls) ->
  classpath = [ ".", "#{__dirname}/../third_party/classes" ]
  for p in classpath
    data = exports.read_binary_file "#{p}/#{cls}.class"
    return new ClassFile data if data?

    util.log_level = util[argv.log.toUpperCase()]
  else if argv.log? # assume a number
    util.log_level = argv.log + 0

  if argv.classpath?
    classpath = argv.classpath.split(":")
    classpath.push("#{__dirname}/../third_party/classes")

  cname = argv._[0]
  cname = cname[0...-6] if cname[-6..] is '.class'
