comment out mains

This commit is contained in:
zzz
2010-05-02 12:11:20 +00:00
parent d608f450af
commit 949a8901fb
4 changed files with 9 additions and 1 deletions

View File

@ -211,6 +211,7 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
} }
} }
/******
public static void main(String args[]) { public static void main(String args[]) {
for (int i = 129; i < 64*1024; i++) { for (int i = 129; i < 64*1024; i++) {
if (!test(i)) return; if (!test(i)) return;
@ -279,4 +280,5 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
return false; return false;
} }
} }
******/
} }

View File

@ -122,6 +122,7 @@ public class ResettableGZIPOutputStream extends DeflaterOutputStream {
super.write(buf, off, len); super.write(buf, off, len);
} }
/******
public static void main(String args[]) { public static void main(String args[]) {
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
test(); test();
@ -165,12 +166,13 @@ public class ResettableGZIPOutputStream extends DeflaterOutputStream {
} catch (Exception e) { e.printStackTrace(); } } catch (Exception e) { e.printStackTrace(); }
} }
/** just for testing/verification, expose the CRC32 values */ // just for testing/verification, expose the CRC32 values
private static final class SnoopGZIPOutputStream extends GZIPOutputStream { private static final class SnoopGZIPOutputStream extends GZIPOutputStream {
public SnoopGZIPOutputStream(OutputStream o) throws IOException { public SnoopGZIPOutputStream(OutputStream o) throws IOException {
super(o); super(o);
} }
public CRC32 getCRC() { return crc; } public CRC32 getCRC() { return crc; }
} }
******/
} }

View File

@ -48,6 +48,7 @@ public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
private ReusableGZIPInputStream() { super(); } private ReusableGZIPInputStream() { super(); }
/*******
public static void main(String args[]) { public static void main(String args[]) {
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
test(); test();
@ -127,5 +128,6 @@ public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
return false; return false;
} }
} }
******/
} }

View File

@ -65,6 +65,7 @@ public class ReusableGZIPOutputStream extends ResettableGZIPOutputStream {
/** pull the contents of the stream written */ /** pull the contents of the stream written */
public byte[] getData() { return _buffer.toByteArray(); } public byte[] getData() { return _buffer.toByteArray(); }
/******
public static void main(String args[]) { public static void main(String args[]) {
try { try {
for (int i = 0; i < 2; i++) for (int i = 0; i < 2; i++)
@ -129,5 +130,6 @@ public class ReusableGZIPOutputStream extends ResettableGZIPOutputStream {
return false; return false;
} }
} }
*****/
} }