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.PseudoTerminalModesBuilder
fromBinaryModes
(byte[] modes) reset()
Clear all modes set in this builder.withMode
(int mode) Set aboolean>code> mode to
true
.withMode
(int mode, boolean value) Set aboolean
mode.withMode
(int mode, int value) Set aninteger
mode.withoutMode
(int mode) Set aboolean>code> mode to
false
.
-
Constructor Details
-
PseudoTerminalModesBuilder
public PseudoTerminalModesBuilder()
-
-
Method Details
-
reset
Clear all modes set in this builder.- Returns:
- this for chaining
-
withMode
Set aboolean
mode.- Parameters:
mode
- modevalue
- value to set- Returns:
- this for chaining
-
withMode
Set aninteger
mode.- Parameters:
mode
- modevalue
- value to set- Returns:
- this for chaining
-
withMode
Set aboolean>code> mode to
true
.- Parameters:
mode
- mode- Returns:
- this for chaining
-
withoutMode
Set aboolean>code> mode to
false
.- Parameters:
mode
- mode- Returns:
- this for chaining
-
create
Create a newPseudoTerminalModes.PseudoTerminalModesBuilder
- Returns:
- builder
-
build
Build a newPseudoTerminalModes
.- Returns:
- modes
- Throws:
IOException
-
fromBinaryModes
-