object
  method close : unit
  method init : #Mozilla.XPCOM.file -> int -> int -> int -> unit
  method write : string -> int -> unit
end