APIdia Launch Partner
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 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.

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

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

Inherited from sun.nio.ch.UnixDispatcher:
closeimplPreCloseinit

Constructor Detail

SocketDispatcherback to summary
pack-priv SocketDispatcher()

Method Detail

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

Annotations
@Override
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".

Annotations
@Override
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.

Annotations
@Override
write0back to summary
private 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.

Annotations
@Override
writev0back to summary
private static native long writev0(FileDescriptor fd, long address, int len) throws IOException