/openjdk7/jdk/test/java/nio/channels/FileChannel/ |
H A D | Mode.java | 26 * @summary Test FileChannel maps with different accesses 47 FileChannel channel = is.getChannel(); 49 MappedByteBuffer buff = channel.map(FileChannel.MapMode.READ_WRITE, 60 FileChannel channel = is.getChannel(); 62 MappedByteBuffer buff = channel.map(FileChannel.MapMode.READ_ONLY,
|
H A D | InterruptDeadlock.java | 38 * A thread that continuously reads from a FileChannel with 40 * the FileChannel is closed. 43 final FileChannel fc; 46 Reader(FileChannel fc) { 75 static Reader startReader(FileChannel fc) { 87 try (FileChannel fc = FileChannel.open(file, CREATE, TRUNCATE_EXISTING, WRITE)) { 97 try (FileChannel fc = FileChannel.open(file)) { 128 System.err.println("FileChannel wa [all...] |
H A D | ClosedChannelTransfer.java | 37 FileChannel channel = (new RandomAccessFile("aaa","rw")).getChannel(); 44 static void test1(FileChannel channel) throws Exception { 58 static void test2(FileChannel channel) throws Exception {
|
H A D | MapAssertions.java | 27 * @summary Check for assertion failures in FileChannel.map 39 FileChannel fc = raf.getChannel(); 42 fc.map(FileChannel.MapMode.READ_ONLY, 0l, fileSize);
|
H A D | MapOverEnd.java | 39 FileChannel fc = raf.getChannel(); 40 MappedByteBuffer map = fc.map(FileChannel.MapMode.READ_WRITE, 0, 2048);
|
H A D | MapReadOnly.java | 38 FileChannel fc = raf.getChannel(); 39 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0L,
|
H A D | Args.java | 62 final FileChannel fc = new RandomAccessFile(f, "rw").getChannel(); 86 fc.map(FileChannel.MapMode.READ_ONLY, -1, 0); 91 fc.map(FileChannel.MapMode.READ_ONLY, 0, -1); 96 fc.map(FileChannel.MapMode.READ_ONLY, 0,
|
H A D | Release.java | 36 FileChannel ch = fos.getChannel();
|
H A D | AtomicAppend.java | 38 import java.nio.channels.FileChannel; 45 // Open file for appending, returning FileChannel 46 static FileChannel newFileChannel(File file) throws IOException { 50 return FileChannel.open(file.toPath(), APPEND); 64 static void write(FileChannel fc, int b) throws IOException { 86 // randomly choose FileChannel or OutputStream 88 try (FileChannel fc = newFileChannel(file)) {
|
H A D | Position.java | 26 * @summary Test position method of FileChannel 31 import java.nio.channels.FileChannel; 39 * Testing FileChannel's position method. 54 try (FileChannel fc = (generator.nextBoolean()) ? 55 FileChannel.open(blah, READ) : 67 try (FileChannel fc = (generator.nextBoolean()) ? 68 FileChannel.open(blah, APPEND) :
|
H A D | MapTest.java | 25 * @summary Test file mapping with FileChannel 32 import java.nio.channels.FileChannel; 37 * Testing FileChannel's mapping capabilities. 100 FileChannel c = fis.getChannel(); 101 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_ONLY, 0, 0); 116 FileChannel c = fis.getChannel(); 122 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_ONLY, 151 FileChannel c = raf.getChannel(); 154 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_WRITE, 178 FileChannel f [all...] |
H A D | Write.java | 27 * @summary Test FileChannel write 57 FileChannel fc = fos.getChannel(); 79 FileChannel fc = fos.getChannel(); 116 FileChannel fc = fos.getChannel(); 156 FileChannel[] fcs = new FileChannel[TEST4_NUM_BUFFERS]; 165 FileChannel fc = fis.getChannel(); 166 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0, 172 FileChannel fc = fos.getChannel(); 188 FileChannel f [all...] |
H A D | Force.java | 26 * @summary Check for regressions in FileChannel.force 40 // 4434115: FileChannel.write() fails when preceded by force() operation 46 FileChannel fc = fis.getChannel(); 53 // 4802789: FileChannel.force(true) throws IOException (windows) 58 FileChannel fc = fis.getChannel();
|
H A D | Lock.java | 26 * @summary The FileChannel file locking 34 * Testing FileChannel's lock method. 64 FileChannel channel = raf.getChannel(); 78 FileChannel fc = fis.getChannel(); 137 FileChannel fc1 = new RandomAccessFile(blah, "rw").getChannel(); 138 FileChannel fc2 = new RandomAccessFile(blah, "rw").getChannel(); 172 try (FileChannel fc = new FileOutputStream(blah, true).getChannel()) { 178 try (FileChannel fc = FileChannel.open(blah.toPath(), APPEND)) { 191 FileChannel f [all...] |
H A D | TransferToNonWritable.java | 40 FileChannel channel = fis.getChannel();
|
/openjdk7/jdk/test/java/nio/MappedByteBuffer/ |
H A D | Basic.java | 41 FileChannel fc = fos.getChannel(); 48 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0, 10); 56 mbb = fc.map(FileChannel.MapMode.READ_ONLY, 1, 10); 65 mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0, 10); 73 mbb = fc.map(FileChannel.MapMode.READ_WRITE, 0, 10);
|
H A D | Force.java | 44 FileChannel fc = raf.getChannel(); 45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, filesize-cut);
|
H A D | ZeroMap.java | 44 FileChannel fc = raf.getChannel(); 45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, 0);
|
/openjdk7/jdk/test/sun/misc/IoTrace/ |
H A D | IoTraceFileChannelReadWrite.java | 28 import java.nio.channels.FileChannel; 40 try (FileChannel fc = FileChannel.open(f.toPath(), 52 try (FileChannel fc = FileChannel.open(f.toPath(),
|
/openjdk7/jdk/src/share/classes/java/nio/channels/ |
H A D | FileLock.java | 34 * one of the {@link FileChannel#lock(long,long,boolean) lock} or {@link 35 * FileChannel#tryLock(long,long,boolean) tryLock} methods of the 36 * {@link FileChannel} class, or the {@link 96 * prevents that region from being {@link java.nio.channels.FileChannel#map 147 protected FileLock(FileChannel channel, 209 public final FileChannel channel() { 210 return (channel instanceof FileChannel) ? (FileChannel)channel : null;
|
H A D | FileChannel.java | 155 public abstract class FileChannel class in inherits:AbstractInterruptibleChannel,SeekableByteChannel,GatheringByteChannel,ScatteringByteChannel 162 protected FileChannel() { } method in class:FileChannel 281 public static FileChannel open(Path path, 329 public static FileChannel open(Path path, OpenOption... options) 460 public abstract FileChannel position(long newPosition) throws IOException; 503 public abstract FileChannel truncate(long size) throws IOException; 787 * @see java.nio.channels.FileChannel#map 911 * @see java.nio.channels.FileChannel.MapMode
|
/openjdk7/jdk/test/java/io/RandomAccessFile/ |
H A D | Close.java | 37 FileChannel channel = raf.getChannel();
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/ |
H A D | PerfDataBuffer.java | 33 import java.nio.channels.FileChannel; 60 FileChannel fc = new RandomAccessFile(f, mode).getChannel(); 64 bb = fc.map(FileChannel.MapMode.READ_ONLY, 0L, (int)fc.size()); 66 bb = fc.map(FileChannel.MapMode.READ_WRITE, 0L, (int)fc.size());
|
/openjdk7/jdk/src/share/classes/com/sun/tools/hat/internal/parser/ |
H A D | MappedReadBuffer.java | 38 import java.nio.channels.FileChannel; 54 FileChannel ch = file.getChannel(); 61 buf = ch.map(FileChannel.MapMode.READ_ONLY, 0, size);
|
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/ |
H A D | PerfDataBuffer.java | 34 import java.nio.channels.FileChannel; 76 FileChannel fc = new RandomAccessFile(f, "r").getChannel(); 77 ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0L,
|