Lines Matching defs:file
12 * version 2 for more details (a copy is included in the LICENSE file that
36 import java.nio.file.StandardOpenOption;
37 import java.nio.file.FileAlreadyExistsException;
98 throw new RuntimeException("Wrote past file size");
157 // get filechannel for the source file.
163 // write out data to the file channel
169 // get filechannel for the dst file.
192 // get filechannel for the source file.
199 // write out data to the file channel
205 // get filechannel for the dst file.
226 // Test transferTo with large file
228 // Windows and Linux can't handle the really large file sizes for a
265 // Test transferFrom with large file
267 // Create a source file & large sink file for the test
272 // Create the sink file as a sparse file if possible
277 // re-create as a sparse file
324 static void checkFileData(File file, String expected) throws Exception {
325 FileInputStream fis = new FileInputStream(file);
406 // Test transferTo with file positions larger than 2 and 4GB
408 // Creating a sparse 6GB file on Windows takes too long
415 // Create 6GB file
417 File file = File.createTempFile("source", null);
418 file.deleteOnExit();
420 RandomAccessFile raf = new RandomAccessFile(file, "rw");
426 System.err.println("Unable to create test file:" + x);
480 // write to file and transfer to echo server
505 file.delete();
531 * Creates file blah of specified size in bytes.