Top Inners Constructors Methods
jnr.enxio.channels

public final Class Native

extends Object
Class Inheritance
Imports
jnr.constants.platform.Errno, jnr.enxio.channels.WinLibCAdapter.LibMSVCRT, jnr.ffi.*, .Platform.OS, .Runtime, .Platform, jnr.ffi.annotations.IgnoreError, .In, .Out, .Transient, jnr.ffi.types.size_t, .ssize_t, java.io.IOException, java.nio.ByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
private static class
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static int
close(int fd)

public static Errno
public static String
pack-priv static Runtime
pack-priv static Native.LibC
libc()

public static int
read(int fd, ByteBuffer dst)

public static void
setBlocking(int fd, boolean block)

public static int
shutdown(int fd, int how)

public static int
write(int fd, ByteBuffer src)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Nativeback to summary
public Native()

Method Detail

closeback to summary
public static int close(int fd) throws IOException
getLastErrorback to summary
public static Errno getLastError()
getLastErrorStringback to summary
public static String getLastErrorString()
getRuntimeback to summary
pack-priv static Runtime getRuntime()
libcback to summary
pack-priv static Native.LibC libc()
readback to summary
public static int read(int fd, ByteBuffer dst) throws IOException
setBlockingback to summary
public static void setBlocking(int fd, boolean block)
shutdownback to summary
public static int shutdown(int fd, int how)
writeback to summary
public static int write(int fd, ByteBuffer src) throws IOException
jnr.enxio.channels back to summary

public Interface Native.LibC

Known Direct Implementers
jnr.enxio.channels.WinLibCAdapter

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int

Method Summary

Modifier and TypeMethod and Description
public int
close(int fd)

public int
fcntl(int fd, int cmd, int data)

public int
kevent(int kq, ByteBuffer changebuf, int nchanges, ByteBuffer eventbuf, int nevents, Native.Timespec timeout)

public int
kevent(int kq, Pointer changebuf, int nchanges, Pointer eventbuf, int nevents, Native.Timespec timeout)

public int
public int
pipe(int[] fds)

public int
poll(ByteBuffer pfds, int nfds, int timeout)

public int
poll(Pointer pfds, int nfds, int timeout)

public int
read(int fd, ByteBuffer data, long size)

public int
read(int fd, byte[] data, long size)

public int
shutdown(int s, int how)

public String
strerror(int error)

public int
write(int fd, ByteBuffer data, long size)

public int
write(int fd, byte[] data, long size)

Field Detail

F_GETFLback to summary
public static final int F_GETFL
F_SETFLback to summary
public static final int F_SETFL
O_NONBLOCKback to summary
public static final int O_NONBLOCK

Method Detail

closeback to summary
public int close(int fd)
fcntlback to summary
public int fcntl(int fd, int cmd, int data)
keventback to summary
public int kevent(int kq, ByteBuffer changebuf, int nchanges, ByteBuffer eventbuf, int nevents, Native.Timespec timeout)
keventback to summary
public int kevent(int kq, Pointer changebuf, int nchanges, Pointer eventbuf, int nevents, Native.Timespec timeout)
kqueueback to summary
public int kqueue()
pipeback to summary
public int pipe(int[] fds)
pollback to summary
public int poll(ByteBuffer pfds, int nfds, int timeout)
pollback to summary
public int poll(Pointer pfds, int nfds, int timeout)
readback to summary
public int read(int fd, ByteBuffer data, long size)
Annotations
@ssize_t
readback to summary
public int read(int fd, byte[] data, long size)
Annotations
@ssize_t
shutdownback to summary
public int shutdown(int s, int how)
strerrorback to summary
public String strerror(int error)
Annotations
@IgnoreError
writeback to summary
public int write(int fd, ByteBuffer data, long size)
Annotations
@ssize_t
writeback to summary
public int write(int fd, byte[] data, long size)
Annotations
@ssize_t
jnr.enxio.channels back to summary

private final Class Native.SingletonHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final Native.LibC
pack-priv static final Runtime

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

libcback to summary
pack-priv static final Native.LibC libc
runtimeback to summary
pack-priv static final Runtime runtime

Constructor Detail

SingletonHolderback to summary
private SingletonHolder()
jnr.enxio.channels back to summary

public final Class Native.Timespec

extends Struct
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final Struct.SignedLong
public final Struct.SignedLong

Constructor Summary

AccessConstructor and Description
public
public
Timespec(Runtime runtime)

public
Timespec(long sec, long nsec)

Method Summary

Inherited from jnr.ffi.Struct:
alignmentarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayarrayBeginarrayEndarrayOffunctiongetMemorygetMemorygetRuntimeinnerinnerisDirectsizesizesizetoStringuseMemory

Field Detail

tv_nsecback to summary
public final Struct.SignedLong tv_nsec
tv_secback to summary
public final Struct.SignedLong tv_sec

Constructor Detail

Timespecback to summary
public Timespec()
Timespecback to summary
public Timespec(Runtime runtime)
Timespecback to summary
public Timespec(long sec, long nsec)