本文整理了Java中org.apache.sshd.common.util.buffer.Buffer.getAvailableStrings()
方法的一些代码示例,展示了Buffer.getAvailableStrings()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.getAvailableStrings()
方法的具体详情如下:
包路径:org.apache.sshd.common.util.buffer.Buffer
类名称:Buffer
方法名:getAvailableStrings
暂无
代码示例来源:origin: org.apache.sshd/sshd-osgi
/**
* @return The remaining data as a list of strings
* @see #getAvailableStrings(Charset)
*/
public Collection<String> getAvailableStrings() {
return getAvailableStrings(StandardCharsets.UTF_8);
}
代码示例来源:origin: org.apache.sshd/sshd-common
/**
* @return The remaining data as a list of strings
* @see #getAvailableStrings(Charset)
*/
public Collection<String> getAvailableStrings() {
return getAvailableStrings(StandardCharsets.UTF_8);
}
代码示例来源:origin: org.apache.sshd/sshd-common
/**
* @param usePrependedLength If {@code true} then there is a 32-bit
* value indicating the number of strings to read. Otherwise, the
* method will use a "greedy" reading of strings while more
* data available
* @param charset The {@link Charset} to use for the string
* @return A {@link Collection} of the read strings
* @see #getStringList(int, Charset)
* @see #getAvailableStrings()
*/
public Collection<String> getStringList(boolean usePrependedLength, Charset charset) {
if (usePrependedLength) {
int count = getInt();
return getStringList(count, charset);
} else {
return getAvailableStrings(charset);
}
}
代码示例来源:origin: org.apache.sshd/sshd-osgi
/**
* @param usePrependedLength If {@code true} then there is a 32-bit
* value indicating the number of strings to read. Otherwise, the
* method will use a "greedy" reading of strings while more
* data available.
* @param charset The {@link Charset} to use for the strings
* @return A {@link Collection} of the read strings
* @see #getStringList(int, Charset)
* @see #getAvailableStrings()
*/
public Collection<String> getStringList(boolean usePrependedLength, Charset charset) {
if (usePrependedLength) {
int count = getInt();
return getStringList(count, charset);
} else {
return getAvailableStrings(charset);
}
}
内容来源于网络,如有侵权,请联系作者删除!