APIdia Launch Partner
Top Fields Constructors Methods
jdk.internal.org.jline.terminal.impl.ffm

pack-priv Class FfmNativePty

extends AbstractPty
Class Inheritance
Imports
java.io.FileDescriptor, .FileInputStream, .FileOutputStream, .IOException, .InputStream, .OutputStream, jdk.internal.org.jline.terminal.Attributes, .Size, jdk.internal.org.jline.terminal.impl.AbstractPty, jdk.internal.org.jline.terminal.spi.SystemStream, .TerminalProvider

Field Summary

Modifier and TypeField and Description
private final int
private final FileDescriptor
private final String
private final int
private final FileDescriptor
private final int
private final FileDescriptor
Inherited from jdk.internal.org.jline.terminal.impl.AbstractPty:
providersystemStream

Constructor Summary

AccessConstructor and Description
public
FfmNativePty(TerminalProvider provider, SystemStream systemStream, int master, int slave, String name)

public
FfmNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

protected InputStream
protected void
public Attributes
public int
public FileDescriptor
public InputStream
public OutputStream
public String
public Size
public int
public FileDescriptor
public int
public FileDescriptor
public OutputStream
public static boolean
public static String
public void
public static int
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from jdk.internal.org.jline.terminal.impl.AbstractPty:
checkInterruptedgetProvidergetSlaveInputgetSystemStreamnewDescriptorsetAttr

Field Detail

masterback to summary
private final int master
masterFDback to summary
private final FileDescriptor masterFD
nameback to summary
private final String name
slaveback to summary
private final int slave
slaveFDback to summary
private final FileDescriptor slaveFD
slaveOutback to summary
private final int slaveOut
slaveOutFDback to summary
private final FileDescriptor slaveOutFD

Constructor Detail

FfmNativePtyback to summary
public FfmNativePty(TerminalProvider provider, SystemStream systemStream, int master, int slave, String name)
FfmNativePtyback to summary
public FfmNativePty(TerminalProvider provider, SystemStream systemStream, int master, FileDescriptor masterFD, int slave, FileDescriptor slaveFD, int slaveOut, FileDescriptor slaveOutFD, String name)

Method Detail

closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
doGetSlaveInputback to summary
protected InputStream doGetSlaveInput()

Implements abstract jdk.internal.org.jline.terminal.impl.AbstractPty.doGetSlaveInput.

doSetAttrback to summary
protected void doSetAttr(Attributes attr) throws IOException

Implements abstract jdk.internal.org.jline.terminal.impl.AbstractPty.doSetAttr.

Annotations
@Override
getAttrback to summary
public Attributes getAttr() throws IOException

Implements jdk.internal.org.jline.terminal.spi.Pty.getAttr.

Annotations
@Override
getMasterback to summary
public int getMaster()
getMasterFDback to summary
public FileDescriptor getMasterFD()
getMasterInputback to summary
public InputStream getMasterInput()

Implements jdk.internal.org.jline.terminal.spi.Pty.getMasterInput.

getMasterOutputback to summary
public OutputStream getMasterOutput()

Implements jdk.internal.org.jline.terminal.spi.Pty.getMasterOutput.

getNameback to summary
public String getName()
getSizeback to summary
public Size getSize() throws IOException

Implements jdk.internal.org.jline.terminal.spi.Pty.getSize.

Annotations
@Override
getSlaveback to summary
public int getSlave()
getSlaveFDback to summary
public FileDescriptor getSlaveFD()
getSlaveOutback to summary
public int getSlaveOut()
getSlaveOutFDback to summary
public FileDescriptor getSlaveOutFD()
getSlaveOutputback to summary
public OutputStream getSlaveOutput()

Implements jdk.internal.org.jline.terminal.spi.Pty.getSlaveOutput.

isPosixSystemStreamback to summary
public static boolean isPosixSystemStream(SystemStream stream)
posixSystemStreamNameback to summary
public static String posixSystemStreamName(SystemStream stream)
setSizeback to summary
public void setSize(Size size) throws IOException

Implements jdk.internal.org.jline.terminal.spi.Pty.setSize.

Annotations
@Override
systemStreamWidthback to summary
public static int systemStreamWidth(SystemStream systemStream)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override