FileDescriptor implementation which allows to wrap an int and provide a
FileDescriptor for it.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | |
| pack-priv volatile int | state
Bit map = [Output Shutdown | Input Shutdown | Closed] |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final AtomicIntegerFieldUpdater |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv final boolean | |
| public void | |
| private static native int | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public static FileDescriptor | |
| public static FileDescriptor | |
| public int | |
| pack-priv static int | |
| public final int | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| public boolean | |
| pack-priv static boolean | |
| protected boolean | |
| private static native long | |
| private static native int | |
| pack-priv static int | |
| public static FileDescriptor[] | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public String | |
| public final int | |
| private static native int | |
| public final int | |
| private static native int | |
| public final long | |
| private static native long | |
| public final long | |
| private static native long |
| fd | back to summary |
|---|---|
| pack-priv final int fd | |
| state | back to summary |
|---|---|
| pack-priv volatile int state Bit map = [Output Shutdown | Input Shutdown | Closed] | |
| STATE_ALL_MASK | back to summary |
|---|---|
| private static final int STATE_ALL_MASK | |
| STATE_CLOSED_MASK | back to summary |
|---|---|
| private static final int STATE_CLOSED_MASK | |
| STATE_INPUT_SHUTDOWN_MASK | back to summary |
|---|---|
| private static final int STATE_INPUT_SHUTDOWN_MASK | |
| STATE_OUTPUT_SHUTDOWN_MASK | back to summary |
|---|---|
| private static final int STATE_OUTPUT_SHUTDOWN_MASK | |
| stateUpdater | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<FileDescriptor> stateUpdater | |
| FileDescriptor | back to summary |
|---|---|
| public FileDescriptor(int fd) | |
| casState | back to summary |
|---|---|
| pack-priv final boolean casState(int expected, int update) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Close the file descriptor. | |
| close | back to summary |
|---|---|
| private static native int close(int fd) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| from | back to summary |
|---|---|
| public static FileDescriptor from(String path) throws IOException Open a new | |
| from | back to summary |
|---|---|
| public static FileDescriptor from(File file) throws IOException Open a new | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| inputShutdown | back to summary |
|---|---|
| pack-priv static int inputShutdown(int state) | |
| intValue | back to summary |
|---|---|
| public final int intValue() Return the int value of the filedescriptor. | |
| isClosed | back to summary |
|---|---|
| pack-priv static boolean isClosed(int state) | |
| isInputShutdown | back to summary |
|---|---|
| pack-priv static boolean isInputShutdown(int state) | |
| isOpen | back to summary |
|---|---|
| public boolean isOpen() Returns | |
| isOutputShutdown | back to summary |
|---|---|
| pack-priv static boolean isOutputShutdown(int state) | |
| markClosed | back to summary |
|---|---|
| protected boolean markClosed() | |
| newPipe | back to summary |
|---|---|
| private static native long newPipe() | |
| open | back to summary |
|---|---|
| private static native int open(String path) | |
| outputShutdown | back to summary |
|---|---|
| pack-priv static int outputShutdown(int state) | |
| pipe | back to summary |
|---|---|
public static FileDescriptor[] pipe() throws IOException
| |
| read | back to summary |
|---|---|
| public final int read(ByteBuffer buf, int pos, int limit) throws IOException | |
| read | back to summary |
|---|---|
| private static native int read(int fd, ByteBuffer buf, int pos, int limit) | |
| readAddress | back to summary |
|---|---|
| public final int readAddress(long address, int pos, int limit) throws IOException | |
| readAddress | back to summary |
|---|---|
| private static native int readAddress(int fd, long address, int pos, int limit) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| write | back to summary |
|---|---|
| public final int write(ByteBuffer buf, int pos, int limit) throws IOException | |
| write | back to summary |
|---|---|
| private static native int write(int fd, ByteBuffer buf, int pos, int limit) | |
| writeAddress | back to summary |
|---|---|
| public final int writeAddress(long address, int pos, int limit) throws IOException | |
| writeAddress | back to summary |
|---|---|
| private static native int writeAddress(int fd, long address, int pos, int limit) | |
| writev | back to summary |
|---|---|
| public final long writev(ByteBuffer[] buffers, int offset, int length, long maxBytesToWrite) throws IOException | |
| writev | back to summary |
|---|---|
| private static native long writev(int fd, ByteBuffer[] buffers, int offset, int length, long maxBytesToWrite) | |
| writevAddresses | back to summary |
|---|---|
| public final long writevAddresses(long memoryAddress, int length) throws IOException | |
| writevAddresses | back to summary |
|---|---|
| private static native long writevAddresses(int fd, long memoryAddress, int length) | |