B2G/gecko/modules/libjar/zipwriter/test/unit/test_bug717061.js
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0
 */
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .
function BinaryComparer(file, callback) {
  var fstream = Cc["@mozilla.org/network/file-input-stream;1"].
                createInstance(Ci.nsIFileInputStream);
  fstream.init(file, -1, 0, 0);
  this.length = file.fileSize;
  this.fileStream = Cc["@mozilla.org/binaryinputstream;1"].
                    createInstance(Ci.nsIBinaryInputStream);
  this.fileStream.setInputStream(fstream);
  this.offset = 0;
  this.callback = callback;
}
function BinaryComparer ( file , callback ) { var fstream = Cc [ "@mozilla.org/network/file-input-stream;1" ] . createInstance ( Ci . nsIFileInputStream ) ; fstream . init ( file , - 1 , 0 , 0 ) ; this . length = file . fileSize ; this . fileStream = Cc [ "@mozilla.org/binaryinputstream;1" ] . createInstance ( Ci . nsIBinaryInputStream ) ; this . fileStream . setInputStream ( fstream ) ; this . offset = 0 ; this . callback = callback ; }
Any copyright is dedicated to the Public Domain.
Any copyright is dedicated to the Public Domain .