Lines Matching defs:fc

108             FileChannel fc = fis.getChannel();
109 MappedByteBuffer b = fc.map(MapMode.READ_ONLY, 0, 0);
123 FileChannel fc = fis.getChannel();
129 MappedByteBuffer b = fc.map(MapMode.READ_ONLY,
157 FileChannel fc = raf.getChannel();
160 MappedByteBuffer b = fc.map(MapMode.READ_WRITE,
183 FileChannel fc = raf.getChannel();
185 MappedByteBuffer b = fc.map(MapMode.READ_WRITE,
196 try (FileChannel fc = FileChannel.open(blah.toPath(), READ)) {
197 testExceptions(fc);
199 checkException(fc, MapMode.READ_WRITE, 0L, fc.size(),
202 checkException(fc, MapMode.READ_WRITE, -1L, fc.size(),
205 checkException(fc, MapMode.READ_WRITE, 0L, -1L,
208 checkException(fc, MapMode.PRIVATE, 0L, fc.size(),
211 checkException(fc, MapMode.PRIVATE, -1L, fc.size(),
214 checkException(fc, MapMode.PRIVATE, 0L, -1L,
219 try (FileChannel fc = FileChannel.open(blah.toPath(), WRITE)) {
220 testExceptions(fc);
222 checkException(fc, MapMode.READ_ONLY, 0L, fc.size(),
225 checkException(fc, MapMode.READ_ONLY, -1L, fc.size(),
231 //checkException(fc, MapMode.READ_WRITE, 0L, fc.size(),
233 //checkException(fc, MapMode.PRIVATE, 0L, fc.size(),
238 try (FileChannel fc = FileChannel.open(blah.toPath(), READ, WRITE)) {
239 testExceptions(fc);
243 private static void testExceptions(FileChannel fc) throws IOException {
244 checkException(fc, null, 0L, fc.size(),
247 checkException(fc, MapMode.READ_ONLY, -1L, fc.size(),
250 checkException(fc, null, -1L, fc.size(),
253 checkException(fc, MapMode.READ_ONLY, 0L, -1L,
256 checkException(fc, null, 0L, -1L,
259 checkException(fc, MapMode.READ_ONLY, 0L, Integer.MAX_VALUE + 1L,
262 checkException(fc, null, 0L, Integer.MAX_VALUE + 1L,
265 checkException(fc, MapMode.READ_ONLY, Long.MAX_VALUE, 1L,
268 checkException(fc, null, Long.MAX_VALUE, 1L,
277 private static void checkException(FileChannel fc,
286 fc.map(mode, position, size);