Top Description Constructors Methods
sun.nio.ch

pack-priv Class SocketDispatcher

extends UnixDispatcher
Class Inheritance
Imports
java.io.FileDescriptor, .IOException

Allows different platforms to call different native methods for read and write operations.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv void
pack-priv int
read(FileDescriptor fd, long address, int len)

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

Reads up to len bytes from a socket with special handling for "connection reset".

private 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.

Scattering read from a socket into len buffers with special handling for "connection reset".

private static native long
readv0(FileDescriptor fd, long address, int len)

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)

Inherited from sun.nio.ch.UnixDispatcher:
close0initpreClose0

Constructor Detail

SocketDispatcherback to summary
pack-priv SocketDispatcher()

Method Detail

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

Overrides sun.nio.ch.UnixDispatcher.close.

preCloseback to summary
pack-priv void preClose(FileDescriptor fd) throws IOException

Overrides sun.nio.ch.UnixDispatcher.preClose.

readback to summary
pack-priv int read(FileDescriptor fd, long address, int len) throws IOException

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

Reads up to len bytes from a socket with special handling for "connection reset".

Exceptions
IOException:
if another I/O error occurs
ConnectionResetException:
if connection reset is detected
read0back to summary
private 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.

Scattering read from a socket into len buffers with special handling for "connection reset".

Exceptions
IOException:
if another I/O error occurs
ConnectionResetException:
if connection reset is detected
readv0back to summary
private static native long readv0(FileDescriptor fd, long address, int len) throws IOException
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