Searched refs:MapMode (Results 1 - 25 of 26) sorted by relevance

12

/openjdk7/jdk/src/share/classes/java/nio/channels/
H A DFileChannel.java789 public static class MapMode { class in class:FileChannel
794 public static final MapMode READ_ONLY
795 = new MapMode("READ_ONLY");
800 public static final MapMode READ_WRITE
801 = new MapMode("READ_WRITE");
806 public static final MapMode PRIVATE
807 = new MapMode("PRIVATE");
811 private MapMode(String name) { method in class:FileChannel.MapMode
836 * ({@link MapMode#READ_ONLY MapMode
[all...]
/openjdk7/jdk/test/java/nio/MappedByteBuffer/
H A DBasic.java48 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 DForce.java45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, filesize-cut);
H A DZeroMap.java45 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, cut, 0);
H A DTruncate.java48 fc.map(FileChannel.MapMode.READ_WRITE, 0, fc.size());
/openjdk7/jdk/test/java/nio/channels/FileChannel/
H A DMode.java49 MappedByteBuffer buff = channel.map(FileChannel.MapMode.READ_WRITE,
62 MappedByteBuffer buff = channel.map(FileChannel.MapMode.READ_ONLY,
H A DArgs.java86 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 DMapAssertions.java42 fc.map(FileChannel.MapMode.READ_ONLY, 0l, fileSize);
H A DMapOverEnd.java40 MappedByteBuffer map = fc.map(FileChannel.MapMode.READ_WRITE, 0, 2048);
H A DMapReadOnly.java39 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0L,
H A DExpandingMap.java59 buffers[0] = fc.map(FileChannel.MapMode.READ_WRITE, 0, initialSize);
77 buffers[currentBuffer] = fc.map(FileChannel.MapMode.READ_WRITE,
94 buffers[currentBuffer] = fc.map(FileChannel.MapMode.READ_WRITE,
H A DMapTest.java101 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_ONLY, 0, 0);
122 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_ONLY,
154 MappedByteBuffer b = c.map(FileChannel.MapMode.READ_WRITE,
180 MappedByteBuffer b = fc.map(FileChannel.MapMode.READ_WRITE,
H A DSize.java79 fc.map(FileChannel.MapMode.READ_WRITE, testSize, 10);
H A DScatteringRead.java124 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_WRITE, 0,
H A DWrite.java166 MappedByteBuffer mbb = fc.map(FileChannel.MapMode.READ_ONLY, 0,
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/file/
H A DPerfDataBuffer.java64 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 DMappedReadBuffer.java61 buf = ch.map(FileChannel.MapMode.READ_ONLY, 0, size);
/openjdk7/jdk/src/share/classes/sun/jvmstat/perfdata/monitor/protocol/local/
H A DPerfDataBuffer.java77 ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0L,
/openjdk7/jdk/test/java/lang/ClassLoader/defineClass/
H A DDefineClassByteBuffer.java92 return fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
/openjdk7/jdk/test/java/lang/management/BufferPoolMXBean/
H A DBasic.java87 mbb = fc.map(FileChannel.MapMode.READ_WRITE, 10, 100);
/openjdk7/jdk/test/java/nio/charset/coders/
H A DCheck.java63 ByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
/openjdk7/jdk/test/java/security/SecureClassLoader/
H A DDefineClassByteBuffer.java90 return fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DFileChannelImpl.java470 MappedByteBuffer dbb = map(MapMode.READ_ONLY, position, size);
591 MappedByteBuffer bb = src.map(MapMode.READ_ONLY, p, size);
817 public MappedByteBuffer map(MapMode mode, long position, long size)
830 if (mode == MapMode.READ_ONLY)
832 else if (mode == MapMode.READ_WRITE)
834 else if (mode == MapMode.PRIVATE)
837 if ((mode != MapMode.READ_ONLY) && !writable)
/openjdk7/jdk/src/share/classes/sun/font/
H A DType1Font.java206 mapBuf = fc.map(FileChannel.MapMode.READ_ONLY, 0, fileSize);
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/win32/coff/
H A DCOFFFileParser.java68 MappedByteBuffer buf = stream.getChannel().map(FileChannel.MapMode.READ_ONLY,

Completed in 119 milliseconds

12