mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix code
This commit is contained in:
parent
98c4722f54
commit
4a9b4d4253
@ -220,7 +220,7 @@ public class MultiStrFinder {
|
|||||||
/**
|
/**
|
||||||
* 标记当前节点为 字符串尾节点
|
* 标记当前节点为 字符串尾节点
|
||||||
*
|
*
|
||||||
* @param string
|
* @param string 字符串
|
||||||
*/
|
*/
|
||||||
public void setEnd(final String string) {
|
public void setEnd(final String string) {
|
||||||
tagetString = string;
|
tagetString = string;
|
||||||
@ -232,7 +232,7 @@ public class MultiStrFinder {
|
|||||||
*
|
*
|
||||||
* @param c 字符
|
* @param c 字符
|
||||||
* @param charIndex 字符索引
|
* @param charIndex 字符索引
|
||||||
* @return
|
* @return 下一个Node
|
||||||
*/
|
*/
|
||||||
public Node getNext(final char c, final Map<Character, Integer> charIndex) {
|
public Node getNext(final char c, final Map<Character, Integer> charIndex) {
|
||||||
final Integer index = charIndex.get(c);
|
final Integer index = charIndex.get(c);
|
||||||
@ -246,7 +246,7 @@ public class MultiStrFinder {
|
|||||||
* 构建根节点
|
* 构建根节点
|
||||||
*
|
*
|
||||||
* @param allCharSize 全部字符数量
|
* @param allCharSize 全部字符数量
|
||||||
* @return
|
* @return 根Node
|
||||||
*/
|
*/
|
||||||
public static Node createRoot(final int allCharSize) {
|
public static Node createRoot(final int allCharSize) {
|
||||||
final Node node = new Node();
|
final Node node = new Node();
|
||||||
|
@ -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) {
|
if (null != errStream) {
|
||||||
|
@ -158,7 +158,7 @@ public class MinaSession implements Session {
|
|||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
IoUtil.write(shellChannel.getInvertedIn(), charset, false, cmd);
|
IoUtil.writeStrs(shellChannel.getInvertedIn(), charset, false, cmd);
|
||||||
return IoUtil.read(shellChannel.getInvertedOut(), charset);
|
return IoUtil.read(shellChannel.getInvertedOut(), charset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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) {
|
if (null != errStream) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user