3909N/A * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. 1032N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1032N/A * This code is free software; you can redistribute it and/or modify it 1032N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 1032N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 1032N/A * This code is distributed in the hope that it will be useful, but WITHOUT 1032N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1032N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1032N/A * version 2 for more details (a copy is included in the LICENSE file that 1032N/A * You should have received a copy of the GNU General Public License version 1032N/A * 2 along with this work; if not, write to the Free Software Foundation, 1032N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 4365N/A // If true, don't delete large ZIP file created for test. 4365N/A //static final int DATA_LEN = 1024 * 1024; 4365N/A /* args can be empty, in which case check a 3 GB file which is created for 4365N/A * this test (and then deleted). Or it can be a number, in which case 4365N/A * that designates the size of the file that's created for this test (and 4365N/A * then deleted). Or it can be the name of a file to use for the test, in 4365N/A * which case it is *not* deleted. Note that in this last case, the data 4365N/A private static byte buf[] =
new byte[
4096];
4365N/A //--------------------- Infrastructure ---------------------------