APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.nio.fs

pack-priv Class UnixChannelFactory

extends Object
Class Inheritance
Imports
java.io.FileDescriptor, java.nio.file.*, java.nio.channels.*, java.util.Set, jdk.internal.access.SharedSecrets, .JavaIOFileDescriptorAccess, sun.nio.ch.FileChannelImpl, .ThreadPool, .SimpleAsynchronousFileChannelImpl

Factory for FileChannels and AsynchronousFileChannels

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static class
UnixChannelFactory.Flags

Represents the flags from a user-supplied set of open options.

Field Summary

Modifier and TypeField and Description
private static final JavaIOFileDescriptorAccess

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv static AsynchronousFileChannel
newAsynchronousFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode, ThreadPool pool)

Constructs an asynchronous file channel by opening the given file.

pack-priv static FileChannel
newFileChannel(int dfd, UnixPath path, Set<? extends OpenOption> options, int mode)

Constructs a file channel by opening a file using a dfd/path pair

pack-priv static FileChannel
newFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode)

Constructs a file channel by opening the given file.

protected static FileDescriptor
open(int dfd, UnixPath path, UnixChannelFactory.Flags flags, int mode)

Opens file based on parameters and options, returning a FileDescriptor encapsulating the handle to the open file.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fdAccessback to summary
private static final JavaIOFileDescriptorAccess fdAccess

Constructor Detail

UnixChannelFactoryback to summary
protected UnixChannelFactory()

Method Detail

newAsynchronousFileChannelback to summary
pack-priv static AsynchronousFileChannel newAsynchronousFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode, ThreadPool pool) throws UnixException

Constructs an asynchronous file channel by opening the given file.

newFileChannelback to summary
pack-priv static FileChannel newFileChannel(int dfd, UnixPath path, Set<? extends OpenOption> options, int mode) throws UnixException

Constructs a file channel by opening a file using a dfd/path pair

newFileChannelback to summary
pack-priv static FileChannel newFileChannel(UnixPath path, Set<? extends OpenOption> options, int mode) throws UnixException

Constructs a file channel by opening the given file.

openback to summary
protected static FileDescriptor open(int dfd, UnixPath path, UnixChannelFactory.Flags flags, int mode) throws UnixException

Opens file based on parameters and options, returning a FileDescriptor encapsulating the handle to the open file.

sun.nio.fs back to summary

protected Class UnixChannelFactory.Flags

extends Object
Class Inheritance

Represents the flags from a user-supplied set of open options.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean
pack-priv boolean

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
pack-priv static UnixChannelFactory.Flags
toFlags(Set<? extends OpenOption> options)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

appendback to summary
pack-priv boolean append
createback to summary
pack-priv boolean create
createNewback to summary
pack-priv boolean createNew
deleteOnCloseback to summary
pack-priv boolean deleteOnClose
directback to summary
pack-priv boolean direct
dsyncback to summary
pack-priv boolean dsync
readback to summary
pack-priv boolean read
syncback to summary
pack-priv boolean sync
truncateExistingback to summary
pack-priv boolean truncateExisting
writeback to summary
pack-priv boolean write

Constructor Detail

Flagsback to summary
protected Flags()

Method Detail

toFlagsback to summary
pack-priv static UnixChannelFactory.Flags toFlags(Set<? extends OpenOption> options)