JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git] / bin / javajs / util / CompoundDocHeader.js
index 14d9c45..30d7fd1 100644 (file)
@@ -1,66 +1,66 @@
-Clazz.declarePackage ("javajs.util");\r
-c$ = Clazz.decorateAsClass (function () {\r
-this.cd = null;\r
-this.magicNumbers = null;\r
-this.uniqueID16 = null;\r
-this.revNumber = 0;\r
-this.verNumber = 0;\r
-this.sectorPower = 0;\r
-this.shortSectorPower = 0;\r
-this.unused = null;\r
-this.nSATsectors = 0;\r
-this.SID_DIR_start = 0;\r
-this.minBytesStandardStream = 0;\r
-this.SID_SSAT_start = 0;\r
-this.nSSATsectors = 0;\r
-this.SID_MSAT_next = 0;\r
-this.nAdditionalMATsectors = 0;\r
-this.MSAT0 = null;\r
-Clazz.instantialize (this, arguments);\r
-}, javajs.util, "CompoundDocHeader");\r
-Clazz.prepareFields (c$, function () {\r
-this.magicNumbers =  Clazz.newByteArray (8, 0);\r
-this.uniqueID16 =  Clazz.newByteArray (16, 0);\r
-this.unused =  Clazz.newByteArray (10, 0);\r
-this.MSAT0 =  Clazz.newIntArray (109, 0);\r
-});\r
-Clazz.makeConstructor (c$, \r
-function (compoundDocument) {\r
-this.cd = compoundDocument;\r
-}, "javajs.util.CompoundDocument");\r
-Clazz.defineMethod (c$, "readData", \r
-function () {\r
-try {\r
-this.cd.readByteArray (this.magicNumbers, 0, 8);\r
-if (this.magicNumbers[0] != 0xD0 || this.magicNumbers[1] != 0xCF || this.magicNumbers[2] != 0x11 || this.magicNumbers[3] != 0xE0 || this.magicNumbers[4] != 0xA1 || this.magicNumbers[5] != 0xB1 || this.magicNumbers[6] != 0x1A || this.magicNumbers[7] != 0xE1) return false;\r
-this.cd.readByteArray (this.uniqueID16, 0, 16);\r
-this.revNumber = this.cd.readByte ();\r
-this.cd.readByte ();\r
-this.verNumber = this.cd.readByte ();\r
-this.cd.readByte ();\r
-var b1 = this.cd.readByte ();\r
-var b2 = this.cd.readByte ();\r
-this.cd.isBigEndian = (b1 == -1 && b2 == -2);\r
-this.sectorPower = this.cd.readShort ();\r
-this.shortSectorPower = this.cd.readShort ();\r
-this.cd.readByteArray (this.unused, 0, 10);\r
-this.nSATsectors = this.cd.readInt ();\r
-this.SID_DIR_start = this.cd.readInt ();\r
-this.cd.readByteArray (this.unused, 0, 4);\r
-this.minBytesStandardStream = this.cd.readInt ();\r
-this.SID_SSAT_start = this.cd.readInt ();\r
-this.nSSATsectors = this.cd.readInt ();\r
-this.SID_MSAT_next = this.cd.readInt ();\r
-this.nAdditionalMATsectors = this.cd.readInt ();\r
-for (var i = 0; i < 109; i++) this.MSAT0[i] = this.cd.readInt ();\r
-\r
-} catch (e) {\r
-if (Clazz.exceptionOf (e, Exception)) {\r
-System.out.println (e.toString ());\r
-return false;\r
-} else {\r
-throw e;\r
-}\r
-}\r
-return true;\r
-});\r
+Clazz.declarePackage ("javajs.util");
+c$ = Clazz.decorateAsClass (function () {
+this.cd = null;
+this.magicNumbers = null;
+this.uniqueID16 = null;
+this.revNumber = 0;
+this.verNumber = 0;
+this.sectorPower = 0;
+this.shortSectorPower = 0;
+this.unused = null;
+this.nSATsectors = 0;
+this.SID_DIR_start = 0;
+this.minBytesStandardStream = 0;
+this.SID_SSAT_start = 0;
+this.nSSATsectors = 0;
+this.SID_MSAT_next = 0;
+this.nAdditionalMATsectors = 0;
+this.MSAT0 = null;
+Clazz.instantialize (this, arguments);
+}, javajs.util, "CompoundDocHeader");
+Clazz.prepareFields (c$, function () {
+this.magicNumbers =  Clazz.newByteArray (8, 0);
+this.uniqueID16 =  Clazz.newByteArray (16, 0);
+this.unused =  Clazz.newByteArray (10, 0);
+this.MSAT0 =  Clazz.newIntArray (109, 0);
+});
+Clazz.makeConstructor (c$, 
+function (compoundDocument) {
+this.cd = compoundDocument;
+}, "javajs.util.CompoundDocument");
+Clazz.defineMethod (c$, "readData", 
+function () {
+try {
+this.cd.readByteArray (this.magicNumbers, 0, 8);
+if (this.magicNumbers[0] != 0xD0 || this.magicNumbers[1] != 0xCF || this.magicNumbers[2] != 0x11 || this.magicNumbers[3] != 0xE0 || this.magicNumbers[4] != 0xA1 || this.magicNumbers[5] != 0xB1 || this.magicNumbers[6] != 0x1A || this.magicNumbers[7] != 0xE1) return false;
+this.cd.readByteArray (this.uniqueID16, 0, 16);
+this.revNumber = this.cd.readByte ();
+this.cd.readByte ();
+this.verNumber = this.cd.readByte ();
+this.cd.readByte ();
+var b1 = this.cd.readByte ();
+var b2 = this.cd.readByte ();
+this.cd.isBigEndian = (b1 == -1 && b2 == -2);
+this.sectorPower = this.cd.readShort ();
+this.shortSectorPower = this.cd.readShort ();
+this.cd.readByteArray (this.unused, 0, 10);
+this.nSATsectors = this.cd.readInt ();
+this.SID_DIR_start = this.cd.readInt ();
+this.cd.readByteArray (this.unused, 0, 4);
+this.minBytesStandardStream = this.cd.readInt ();
+this.SID_SSAT_start = this.cd.readInt ();
+this.nSSATsectors = this.cd.readInt ();
+this.SID_MSAT_next = this.cd.readInt ();
+this.nAdditionalMATsectors = this.cd.readInt ();
+for (var i = 0; i < 109; i++) this.MSAT0[i] = this.cd.readInt ();
+
+} catch (e) {
+if (Clazz.exceptionOf (e, Exception)) {
+System.out.println (e.toString ());
+return false;
+} else {
+throw e;
+}
+}
+return true;
+});