Lines Matching refs:fc
131 FileChannel fc = raf.getChannel();
132 long oldPosition = fc.position();
134 long bytesWritten = fc.transferFrom(source, 0, size);
135 fc.force(true);
139 if (fc.position() != oldPosition)
142 if (fc.size() != size)
143 throw new RuntimeException("Unexpected sink size "+ fc.size());
145 fc.close();
238 FileChannel fc = raf.getChannel();
239 fc.write(ByteBuffer.wrap("Use the source!".getBytes()), testSize - 40);
240 fc.close();
274 FileChannel fc = null;
275 while (fc == null) {
280 fc = FileChannel.open(sink.toPath(),
292 fc.write(ByteBuffer.wrap("Use the source!".getBytes()),
299 fc.close();
421 FileChannel fc = raf.getChannel();
424 fc.write(ByteBuffer.wrap("0123456789012345".getBytes("UTF-8")), 6*G);
427 fc.close();
481 fc.write(sendbuf, position);
482 fc.transferTo(position, count, source);
504 fc.close();