Top Inners Constructors Methods
jnr.posix

public abstract Class SpawnFileAction

extends Object
Class Inheritance
Known Direct Subclasses
jnr.posix.SpawnFileAction.Dup, jnr.posix.SpawnFileAction.Open, jnr.posix.SpawnFileAction.Close
Imports
jnr.ffi.Pointer, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .CharsetEncoder

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract boolean
act(POSIX posix, Pointer nativeFileActions)

public static SpawnFileAction
close(int fd)

public static SpawnFileAction
dup(int fd, int newfd)

public static SpawnFileAction
open(String path, int fd, int flags, int mode)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SpawnFileActionback to summary
public SpawnFileAction()

Method Detail

actback to summary
pack-priv abstract boolean act(POSIX posix, Pointer nativeFileActions)
closeback to summary
public static SpawnFileAction close(int fd)
dupback to summary
public static SpawnFileAction dup(int fd, int newfd)
openback to summary
public static SpawnFileAction open(String path, int fd, int flags, int mode)
jnr.posix back to summary

private final Class SpawnFileAction.Close

extends SpawnFileAction
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
Close(int fd)

Method Summary

Modifier and TypeMethod and Description
pack-priv final boolean
act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from jnr.posix.SpawnFileAction:
closedupopen

Field Detail

fdback to summary
pack-priv final int fd

Constructor Detail

Closeback to summary
public Close(int fd)

Method Detail

actback to summary
pack-priv final boolean act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

jnr.posix back to summary

private final Class SpawnFileAction.Dup

extends SpawnFileAction
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
Dup(int fd, int newfd)

Method Summary

Modifier and TypeMethod and Description
pack-priv final boolean
act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from jnr.posix.SpawnFileAction:
closedupopen

Field Detail

fdback to summary
pack-priv final int fd
newfdback to summary
pack-priv final int newfd

Constructor Detail

Dupback to summary
public Dup(int fd, int newfd)

Method Detail

actback to summary
pack-priv final boolean act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

jnr.posix back to summary

private final Class SpawnFileAction.Open

extends SpawnFileAction
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int
pack-priv final int
pack-priv final ByteBuffer
pack-priv final String

Constructor Summary

AccessConstructor and Description
public
Open(String path, int fd, int flags, int mode)

Method Summary

Modifier and TypeMethod and Description
pack-priv final boolean
act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

private ByteBuffer
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from jnr.posix.SpawnFileAction:
closedupopen

Field Detail

fdback to summary
pack-priv final int fd
flagsback to summary
pack-priv final int flags
modeback to summary
pack-priv final int mode
nativePathback to summary
pack-priv final ByteBuffer nativePath
pathback to summary
pack-priv final String path

Constructor Detail

Openback to summary
public Open(String path, int fd, int flags, int mode)

Method Detail

actback to summary
pack-priv final boolean act(POSIX posix, Pointer nativeFileActions)

Implements abstract jnr.posix.SpawnFileAction.act.

defensiveCopyback to summary
private ByteBuffer defensiveCopy(String path)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.