Lines Matching defs:fc
43 final FileChannel fc;
46 Reader(FileChannel fc) {
47 this.fc = fc;
57 int n = fc.read(bb, pos);
60 // fc.size is important here as it is position sensitive
61 if (pos >= fc.size())
75 static Reader startReader(FileChannel fc) {
76 Reader r = new Reader(fc);
87 try (FileChannel fc = FileChannel.open(file, CREATE, TRUNCATE_EXISTING, WRITE)) {
88 fc.position(1024L * 1024L);
89 fc.write(ByteBuffer.wrap(new byte[1]));
97 try (FileChannel fc = FileChannel.open(file)) {
102 readers[j] = Reader.startReader(fc);
127 if (fc.isOpen()) {