12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.io; 27 28 import java.util.ArrayList; 29 import java.util.List; 30 import java.util.Objects; 31 32 import jdk.internal.misc.JavaIOFileDescriptorAccess; 33 import jdk.internal.misc.SharedSecrets; 34 import jdk.internal.ref.PhantomCleanable; 35 36 /** 37 * Instances of the file descriptor class serve as an opaque handle 38 * to the underlying machine-specific structure representing an open 39 * file, an open socket, or another source or sink of bytes. 40 * The main practical use for a file descriptor is to create a 41 * {@link FileInputStream} or {@link FileOutputStream} to contain it. 42 * <p> 43 * Applications should not create their own file descriptors. 44 * 45 * @author Pavani Diwanji 46 * @since 1.0 47 */ 48 public final class FileDescriptor { 49 50 private int fd; 51 52 private long handle; 53 | 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package java.io; 27 28 import java.util.ArrayList; 29 import java.util.List; 30 import java.util.Objects; 31 32 import jdk.internal.access.JavaIOFileDescriptorAccess; 33 import jdk.internal.access.SharedSecrets; 34 import jdk.internal.ref.PhantomCleanable; 35 36 /** 37 * Instances of the file descriptor class serve as an opaque handle 38 * to the underlying machine-specific structure representing an open 39 * file, an open socket, or another source or sink of bytes. 40 * The main practical use for a file descriptor is to create a 41 * {@link FileInputStream} or {@link FileOutputStream} to contain it. 42 * <p> 43 * Applications should not create their own file descriptors. 44 * 45 * @author Pavani Diwanji 46 * @since 1.0 47 */ 48 public final class FileDescriptor { 49 50 private int fd; 51 52 private long handle; 53 |