< prev index next >

test/java/nio/channels/FileChannel/Transfer.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4434723 4482726 4559072 4638365 4795550 5081340 5103988 6253145
  26  *   6984545

  27  * @summary Test FileChannel.transferFrom and transferTo (use -Dseed=X to set PRNG seed)
  28  * @library ..
  29  * @library /lib/testlibrary/
  30  * @build jdk.testlibrary.*
  31  * @run testng Transfer
  32  * @key randomness
  33  */
  34 
  35 import java.io.BufferedReader;
  36 import java.io.BufferedWriter;
  37 import java.io.File;
  38 import java.io.FileInputStream;
  39 import java.io.FileOutputStream;
  40 import java.io.InputStreamReader;
  41 import java.io.IOException;
  42 import java.io.OutputStreamWriter;
  43 import java.io.PrintStream;
  44 import java.io.RandomAccessFile;
  45 import java.io.Reader;
  46 import java.lang.reflect.InvocationTargetException;




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /* @test
  25  * @bug 4434723 4482726 4559072 4638365 4795550 5081340 5103988 6253145
  26  *   6984545
  27  * @key intermittent
  28  * @summary Test FileChannel.transferFrom and transferTo (use -Dseed=X to set PRNG seed)
  29  * @library ..
  30  * @library /lib/testlibrary/
  31  * @build jdk.testlibrary.*
  32  * @run testng Transfer
  33  * @key randomness
  34  */
  35 
  36 import java.io.BufferedReader;
  37 import java.io.BufferedWriter;
  38 import java.io.File;
  39 import java.io.FileInputStream;
  40 import java.io.FileOutputStream;
  41 import java.io.InputStreamReader;
  42 import java.io.IOException;
  43 import java.io.OutputStreamWriter;
  44 import java.io.PrintStream;
  45 import java.io.RandomAccessFile;
  46 import java.io.Reader;
  47 import java.lang.reflect.InvocationTargetException;


< prev index next >