Top Fields Constructors Methods
sun.nio.ch

pack-priv Class UnixFileDispatcherImpl

extends FileDispatcher
Class Inheritance
Known Direct Subclasses
sun.nio.ch.FileDispatcherImpl
Imports
java.io.FileDescriptor, .IOException, jdk.internal.access.JavaIOFileDescriptorAccess, .SharedSecrets

Field Summary

Modifier and TypeField and Description
private static final JavaIOFileDescriptorAccess
private static final int
private static final int
private static final int
private static final int
Inherited from sun.nio.ch.FileDispatcher:
INTERRUPTEDLOCKEDNO_LOCKRET_EX_LOCK

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv long
pack-priv static native long
pack-priv boolean
pack-priv boolean
pack-priv void
pack-priv static native void
closeIntFD(int fd)

pack-priv FileDescriptor
duplicateForMapping(FileDescriptor fd)

Implements abstract sun.nio.ch.FileDispatcher.duplicateForMapping.

Returns a dup of fd if a file descriptor is required for memory-mapping operations, otherwise returns an invalid FileDescriptor (meaning a newly allocated FileDescriptor)

pack-priv int
force(FileDescriptor fd, boolean metaData)

Implements abstract sun.nio.ch.FileDispatcher.force.

pack-priv static native int
force0(FileDescriptor fd, boolean metaData)

pack-priv int
lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared)

Implements abstract sun.nio.ch.FileDispatcher.lock.

pack-priv static native int
lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared)

pack-priv long
map(FileDescriptor fd, int prot, long position, long length, boolean isSync)

Implements abstract sun.nio.ch.FileDispatcher.map.

pack-priv static native long
map0(FileDescriptor fd, int prot, long position, long length, boolean isSync)

pack-priv int
pack-priv int
pread(FileDescriptor fd, long address, int len, long position)

Overrides sun.nio.ch.NativeDispatcher.pread.

pack-priv static native int
pread0(FileDescriptor fd, long address, int len, long position)

pack-priv int
pwrite(FileDescriptor fd, long address, int len, long position)

Overrides sun.nio.ch.NativeDispatcher.pwrite.

pack-priv static native int
pwrite0(FileDescriptor fd, long address, int len, long position)

pack-priv int
read(FileDescriptor fd, long address, int len)

Implements abstract sun.nio.ch.NativeDispatcher.read.

pack-priv static native int
read0(FileDescriptor fd, long address, int len)

pack-priv long
readv(FileDescriptor fd, long address, int len)

Implements abstract sun.nio.ch.NativeDispatcher.readv.

pack-priv static native long
readv0(FileDescriptor fd, long address, int len)

pack-priv void
release(FileDescriptor fd, long pos, long size)

Implements abstract sun.nio.ch.FileDispatcher.release.

pack-priv static native void
release0(FileDescriptor fd, long pos, long size)

pack-priv long
seek(FileDescriptor fd, long offset)

Implements abstract sun.nio.ch.FileDispatcher.seek.

Sets or reports this file's position If offset is -1, the current position is returned otherwise the position is set to offset.

pack-priv static native long
seek0(FileDescriptor fd, long offset)

pack-priv static native int
pack-priv int
pack-priv long
pack-priv static native long
pack-priv long
transferFrom(FileDescriptor src, FileDescriptor dst, long position, long count, boolean append)

Implements abstract sun.nio.ch.FileDispatcher.transferFrom.

pack-priv long
transferTo(FileDescriptor src, long position, long count, FileDescriptor dst, boolean append)

Implements abstract sun.nio.ch.FileDispatcher.transferTo.

pack-priv boolean
pack-priv int
truncate(FileDescriptor fd, long size)

Implements abstract sun.nio.ch.FileDispatcher.truncate.

pack-priv static native int
truncate0(FileDescriptor fd, long size)

pack-priv int
unmap(long address, long length)

Implements abstract sun.nio.ch.FileDispatcher.unmap.

pack-priv static native int
unmap0(long address, long length)

pack-priv int
write(FileDescriptor fd, long address, int len)

Implements abstract sun.nio.ch.NativeDispatcher.write.

pack-priv static native int
write0(FileDescriptor fd, long address, int len)

pack-priv long
writev(FileDescriptor fd, long address, int len)

Implements abstract sun.nio.ch.NativeDispatcher.writev.

pack-priv static native long
writev0(FileDescriptor fd, long address, int len)

Field Detail

fdAccessback to summary
private static final JavaIOFileDescriptorAccess fdAccess
MAP_INVALIDback to summary
private static final int MAP_INVALID
MAP_PVback to summary
private static final int MAP_PV
MAP_ROback to summary
private static final int MAP_RO
MAP_RWback to summary
private static final int MAP_RW

Constructor Detail

UnixFileDispatcherImplback to summary
pack-priv UnixFileDispatcherImpl()

Method Detail

allocationGranularityback to summary
pack-priv long allocationGranularity()

Implements abstract sun.nio.ch.FileDispatcher.allocationGranularity.

allocationGranularity0back to summary
pack-priv static native long allocationGranularity0()
canTransferToDirectlyback to summary
pack-priv boolean canTransferToDirectly(SelectableChannel sc)

Implements abstract sun.nio.ch.FileDispatcher.canTransferToDirectly.

canTransferToFromOverlappedMapback to summary
pack-priv boolean canTransferToFromOverlappedMap()

Implements abstract sun.nio.ch.FileDispatcher.canTransferToFromOverlappedMap.

closeback to summary
pack-priv void close(FileDescriptor fd) throws IOException

Implements abstract sun.nio.ch.NativeDispatcher.close.

closeIntFDback to summary
pack-priv static native void closeIntFD(int fd) throws IOException
duplicateForMappingback to summary
pack-priv FileDescriptor duplicateForMapping(FileDescriptor fd)

Implements abstract sun.nio.ch.FileDispatcher.duplicateForMapping.

Doc from sun.nio.ch.FileDispatcher.duplicateForMapping.

Returns a dup of fd if a file descriptor is required for memory-mapping operations, otherwise returns an invalid FileDescriptor (meaning a newly allocated FileDescriptor)

forceback to summary
pack-priv int force(FileDescriptor fd, boolean metaData) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.force.

force0back to summary
pack-priv static native int force0(FileDescriptor fd, boolean metaData) throws IOException
lockback to summary
pack-priv int lock(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.lock.

lock0back to summary
pack-priv static native int lock0(FileDescriptor fd, boolean blocking, long pos, long size, boolean shared) throws IOException
mapback to summary
pack-priv long map(FileDescriptor fd, int prot, long position, long length, boolean isSync) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.map.

map0back to summary
pack-priv static native long map0(FileDescriptor fd, int prot, long position, long length, boolean isSync) throws IOException
maxDirectTransferSizeback to summary
pack-priv int maxDirectTransferSize()

Implements abstract sun.nio.ch.FileDispatcher.maxDirectTransferSize.

preadback to summary
pack-priv int pread(FileDescriptor fd, long address, int len, long position) throws IOException

Overrides sun.nio.ch.NativeDispatcher.pread.

pread0back to summary
pack-priv static native int pread0(FileDescriptor fd, long address, int len, long position) throws IOException
pwriteback to summary
pack-priv int pwrite(FileDescriptor fd, long address, int len, long position) throws IOException

Overrides sun.nio.ch.NativeDispatcher.pwrite.

pwrite0back to summary
pack-priv static native int pwrite0(FileDescriptor fd, long address, int len, long position) throws IOException
readback to summary
pack-priv int read(FileDescriptor fd, long address, int len) throws IOException

Implements abstract sun.nio.ch.NativeDispatcher.read.

read0back to summary
pack-priv static native int read0(FileDescriptor fd, long address, int len) throws IOException
readvback to summary
pack-priv long readv(FileDescriptor fd, long address, int len) throws IOException

Implements abstract sun.nio.ch.NativeDispatcher.readv.

readv0back to summary
pack-priv static native long readv0(FileDescriptor fd, long address, int len) throws IOException
releaseback to summary
pack-priv void release(FileDescriptor fd, long pos, long size) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.release.

release0back to summary
pack-priv static native void release0(FileDescriptor fd, long pos, long size) throws IOException
seekback to summary
pack-priv long seek(FileDescriptor fd, long offset) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.seek.

Doc from sun.nio.ch.FileDispatcher.seek.

Sets or reports this file's position If offset is -1, the current position is returned otherwise the position is set to offset.

seek0back to summary
pack-priv static native long seek0(FileDescriptor fd, long offset) throws IOException
setDirect0back to summary
pack-priv static native int setDirect0(FileDescriptor fd) throws IOException
setDirectIOback to summary
pack-priv int setDirectIO(FileDescriptor fd, String path)

Implements abstract sun.nio.ch.FileDispatcher.setDirectIO.

sizeback to summary
pack-priv long size(FileDescriptor fd) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.size.

size0back to summary
pack-priv static native long size0(FileDescriptor fd) throws IOException
transferFromback to summary
pack-priv long transferFrom(FileDescriptor src, FileDescriptor dst, long position, long count, boolean append)

Implements abstract sun.nio.ch.FileDispatcher.transferFrom.

transferToback to summary
pack-priv long transferTo(FileDescriptor src, long position, long count, FileDescriptor dst, boolean append)

Implements abstract sun.nio.ch.FileDispatcher.transferTo.

transferToDirectlyNeedsPositionLockback to summary
pack-priv boolean transferToDirectlyNeedsPositionLock()

Implements abstract sun.nio.ch.FileDispatcher.transferToDirectlyNeedsPositionLock.

truncateback to summary
pack-priv int truncate(FileDescriptor fd, long size) throws IOException

Implements abstract sun.nio.ch.FileDispatcher.truncate.

truncate0back to summary
pack-priv static native int truncate0(FileDescriptor fd, long size) throws IOException
unmapback to summary
pack-priv int unmap(long address, long length)

Implements abstract sun.nio.ch.FileDispatcher.unmap.

unmap0back to summary
pack-priv static native int unmap0(long address, long length)
writeback to summary
pack-priv int write(FileDescriptor fd, long address, int len) throws IOException

Implements abstract sun.nio.ch.NativeDispatcher.write.

write0back to summary
pack-priv static native int write0(FileDescriptor fd, long address, int len) throws IOException
writevback to summary
pack-priv long writev(FileDescriptor fd, long address, int len) throws IOException

Implements abstract sun.nio.ch.NativeDispatcher.writev.

writev0back to summary
pack-priv static native long writev0(FileDescriptor fd, long address, int len) throws IOException