Package com.sshtools.client
Class PseudoTerminalModes.PseudoTerminalModesBuilder
java.lang.Object
com.sshtools.client.PseudoTerminalModes.PseudoTerminalModesBuilder
- Enclosing class:
- PseudoTerminalModes
Builds
PseudoTerminalModes.
You can reuse an instance of this class providing that you do not want to change any of the modes. If you do want to change modes you can call the reset method to clear out old modes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build a newPseudoTerminalModes.create()Create a newPseudoTerminalModes.PseudoTerminalModesBuilderfromBinaryModes(byte[] modes) reset()Clear all modes set in this builder.withMode(int mode) Set aboolean>code> mode totrue.withMode(int mode, boolean value) Set abooleanmode.withMode(int mode, int value) Set anintegermode.withoutMode(int mode) Set aboolean>code> mode tofalse.
-
Constructor Details
-
PseudoTerminalModesBuilder
public PseudoTerminalModesBuilder()
-
-
Method Details
-
reset
Clear all modes set in this builder.- Returns:
- this for chaining
-
withMode
Set abooleanmode.- Parameters:
mode- modevalue- value to set- Returns:
- this for chaining
-
withMode
Set anintegermode.- Parameters:
mode- modevalue- value to set- Returns:
- this for chaining
-
withMode
Set aboolean>code> mode totrue.- Parameters:
mode- mode- Returns:
- this for chaining
-
withoutMode
Set aboolean>code> mode tofalse.- Parameters:
mode- mode- Returns:
- this for chaining
-
create
Create a newPseudoTerminalModes.PseudoTerminalModesBuilder- Returns:
- builder
-
build
Build a newPseudoTerminalModes.- Returns:
- modes
- Throws:
IOException
-
fromBinaryModes
-