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

public Class ExecPty

extends AbstractPty
implements Pty
Class Inheritance
All Implemented Interfaces
jdk.internal.org.jline.terminal.spi.Pty, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.FileDescriptor, .FileInputStream, .FileOutputStream, .IOException, .InputStream, .OutputStream, java.util.ArrayList, .List, java.util.regex.Matcher, .Pattern, jdk.internal.org.jline.terminal.Attributes, .Attributes.ControlChar, .Attributes.ControlFlag, .Attributes.InputFlag, .Attributes.LocalFlag, .Attributes.OutputFlag, .Size, jdk.internal.org.jline.terminal.impl.AbstractPty, jdk.internal.org.jline.terminal.spi.Pty, .SystemStream, .TerminalProvider, jdk.internal.org.jline.utils.OSUtils

Field Summary

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

Constructor Summary

AccessConstructor and Description
protected
ExecPty(TerminalProvider provider, SystemStream systemStream, 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.

public static Pty
current(TerminalProvider provider, SystemStream systemStream)

public static Attributes
protected String
private static Boolean
doGetFlag(String cfg, Enum<?> flag)

pack-priv static int
doGetInt(String name, String cfg)

pack-priv static Size
protected InputStream
protected void
public Attributes
protected List<String>
public InputStream
public OutputStream
public String
public Size
public OutputStream
pack-priv static int
public void
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

nameback to summary
private final String name

Constructor Detail

ExecPtyback to summary
protected ExecPty(TerminalProvider provider, SystemStream systemStream, 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
currentback to summary
public static Pty current(TerminalProvider provider, SystemStream systemStream) throws IOException
doGetAttrback to summary
public static Attributes doGetAttr(String cfg) throws IOException
doGetConfigback to summary
protected String doGetConfig() throws IOException
doGetFlagback to summary
private static Boolean doGetFlag(String cfg, Enum<?> flag)
doGetIntback to summary
pack-priv static int doGetInt(String name, String cfg) throws IOException
doGetSizeback to summary
pack-priv static Size doGetSize(String cfg) throws IOException
doGetSlaveInputback to summary
protected InputStream doGetSlaveInput() throws IOException

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

Annotations
@Override
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
getFlagsToSetback to summary
protected List<String> getFlagsToSet(Attributes attr, Attributes current)
getMasterInputback to summary
public InputStream getMasterInput()

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

Annotations
@Override
getMasterOutputback to summary
public OutputStream getMasterOutput()

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

Annotations
@Override
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
getSlaveOutputback to summary
public OutputStream getSlaveOutput() throws IOException

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

Annotations
@Override
parseControlCharback to summary
pack-priv static int parseControlChar(String str)
setSizeback to summary
public void setSize(Size size) throws IOException

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

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