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

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

本文整理了Java中org.apache.sshd.common.util.buffer.Buffer.putStringList()方法的一些代码示例,展示了Buffer.putStringList()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.putStringList()方法的具体详情如下:
包路径:org.apache.sshd.common.util.buffer.Buffer
类名称:Buffer
方法名:putStringList

Buffer.putStringList介绍

[英]Encodes the Objects#toString(Object,String) value of each member
[中]对每个成员的Objects#toString(Object,String)值进行编码

代码示例

代码示例来源:origin: org.apache.sshd/sshd-common

/**
 * Encodes the {@link Objects#toString(Object, String) toString} value of each member.
 *
 * @param objects       The objects to be encoded in the buffer - OK if
 *                      {@code null}/empty
 * @param prependLength If {@code true} then the list is preceded by
 *                      a 32-bit count of the number of members in the list
 * @see #putStringList(Collection, Charset, boolean)
 */
public void putStringList(Collection<?> objects, boolean prependLength) {
  putStringList(objects, StandardCharsets.UTF_8, prependLength);
}

代码示例来源:origin: org.apache.sshd/sshd-osgi

/**
 * Encodes the {@link Objects#toString(Object, String) toString} value of each member.
 *
 * @param objects The objects to be encoded in the buffer - OK if {@code null}/empty
 * @param prependLength If {@code true} then the list is preceded by a 32-bit count
 * of the number of members in the list
 * @see #putStringList(Collection, Charset, boolean)
 */
public void putStringList(Collection<?> objects, boolean prependLength) {
  putStringList(objects, StandardCharsets.UTF_8, prependLength);
}

代码示例来源:origin: org.apache.sshd/sshd-sftp

buffer.putStringList(Collections.<String>emptyList(), true);
buffer.putStringList(extras, true);

代码示例来源:origin: org.apache.sshd/sshd-sftp

buffer.putStringList(extras, false);

相关文章