Lines Matching defs:fd
55 private FileDescriptor fd;
88 this.fd = IoBridge.open(file.getAbsolutePath(), mode);
94 * Constructs a new {@code FileOutputStream} that writes to {@code fd}.
96 * @throws NullPointerException if {@code fd} is null.
98 public FileOutputStream(FileDescriptor fd) {
99 if (fd == null) {
100 throw new NullPointerException("fd == null");
102 this.fd = fd;
105 this.channel = NioUtils.newFileChannel(this, fd, mode);
139 IoUtils.close(fd);
141 // An owned fd has been invalidated by IoUtils.close, but
142 // we need to explicitly stop using an unowned fd (http://b/4361076).
143 fd = new FileDescriptor();
172 channel = NioUtils.newFileChannel(this, fd, mode);
182 return fd;
187 IoBridge.write(fd, buffer, byteOffset, byteCount);