comment out mains
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
******/
|
||||||
}
|
}
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
******/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
******/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*****/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user