org.apache.sshd.common.util.buffer.Buffer.getAvailableStrings()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(109)

本文整理了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

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 &quot;greedy&quot; 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 &quot;greedy&quot; 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);
  }
}

相关文章