comment out mains
This commit is contained in:
@ -211,6 +211,7 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
|
||||
}
|
||||
}
|
||||
|
||||
/******
|
||||
public static void main(String args[]) {
|
||||
for (int i = 129; i < 64*1024; i++) {
|
||||
if (!test(i)) return;
|
||||
@ -279,4 +280,5 @@ public class ResettableGZIPInputStream extends InflaterInputStream {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
******/
|
||||
}
|
||||
|
@ -122,6 +122,7 @@ public class ResettableGZIPOutputStream extends DeflaterOutputStream {
|
||||
super.write(buf, off, len);
|
||||
}
|
||||
|
||||
/******
|
||||
public static void main(String args[]) {
|
||||
for (int i = 0; i < 2; i++)
|
||||
test();
|
||||
@ -165,12 +166,13 @@ public class ResettableGZIPOutputStream extends DeflaterOutputStream {
|
||||
} 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 {
|
||||
public SnoopGZIPOutputStream(OutputStream o) throws IOException {
|
||||
super(o);
|
||||
}
|
||||
public CRC32 getCRC() { return crc; }
|
||||
}
|
||||
******/
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,7 @@ public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
|
||||
|
||||
private ReusableGZIPInputStream() { super(); }
|
||||
|
||||
/*******
|
||||
public static void main(String args[]) {
|
||||
for (int i = 0; i < 2; i++)
|
||||
test();
|
||||
@ -127,5 +128,6 @@ public class ReusableGZIPInputStream extends ResettableGZIPInputStream {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
******/
|
||||
}
|
||||
|
||||
|
@ -65,6 +65,7 @@ public class ReusableGZIPOutputStream extends ResettableGZIPOutputStream {
|
||||
/** pull the contents of the stream written */
|
||||
public byte[] getData() { return _buffer.toByteArray(); }
|
||||
|
||||
/******
|
||||
public static void main(String args[]) {
|
||||
try {
|
||||
for (int i = 0; i < 2; i++)
|
||||
@ -129,5 +130,6 @@ public class ReusableGZIPOutputStream extends ResettableGZIPOutputStream {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
*****/
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user