This commit is contained in:
Looly 2024-08-11 00:29:47 +08:00
parent 98c4722f54
commit 4a9b4d4253
4 changed files with 6 additions and 6 deletions

View File

@ -220,7 +220,7 @@ public class MultiStrFinder {
/**
* 标记当前节点为 字符串尾节点
*
* @param string
* @param string 字符串
*/
public void setEnd(final String string) {
tagetString = string;
@ -232,7 +232,7 @@ public class MultiStrFinder {
*
* @param c 字符
* @param charIndex 字符索引
* @return
* @return 下一个Node
*/
public Node getNext(final char c, final Map<Character, Integer> charIndex) {
final Integer index = charIndex.get(c);
@ -246,7 +246,7 @@ public class MultiStrFinder {
* 构建根节点
*
* @param allCharSize 全部字符数量
* @return
* @return 根Node
*/
public static Node createRoot(final int allCharSize) {
final Node node = new Node();

View File

@ -197,7 +197,7 @@ public class GanymedSession implements Session {
}
// 发送命令
IoUtil.write(this.raw.getStdin(), charset, true, cmd);
IoUtil.writeStrs(this.raw.getStdin(), charset, true, cmd);
// 错误输出
if (null != errStream) {

View File

@ -158,7 +158,7 @@ public class MinaSession implements Session {
throw new IORuntimeException(e);
}
IoUtil.write(shellChannel.getInvertedIn(), charset, false, cmd);
IoUtil.writeStrs(shellChannel.getInvertedIn(), charset, false, cmd);
return IoUtil.read(shellChannel.getInvertedOut(), charset);
}
}

View File

@ -222,7 +222,7 @@ public class SshjSession implements Session {
}
// 发送命令
IoUtil.write(shell.getOutputStream(), charset, true, cmd);
IoUtil.writeStrs(shell.getOutputStream(), charset, true, cmd);
// 错误输出
if (null != errStream) {