com.google.protobuf.ByteString.toStringInternal()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(130)

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

ByteString.toStringInternal介绍

[英]Constructs a new String by decoding the bytes using the specified charset.
[中]通过使用指定的字符集对字节进行解码来构造新字符串。

代码示例

代码示例来源:origin: com.google.protobuf/protobuf-java

/**
 * Constructs a new {@code String} by decoding the bytes using the
 * specified charset. Returns the same empty String if empty.
 *
 * @param charset encode using this charset
 * @return new string
 */
public final String toString(Charset charset) {
 return size() == 0 ? "" : toStringInternal(charset);
}

代码示例来源:origin: yeriomin/play-store-api

/**
 * Constructs a new {@code String} by decoding the bytes using the
 * specified charset. Returns the same empty String if empty.
 *
 * @param charset encode using this charset
 * @return new string
 */
public final String toString(Charset charset) {
 return size() == 0 ? "" : toStringInternal(charset);
}

代码示例来源:origin: com.google.protobuf/protobuf-lite

/**
 * Constructs a new {@code String} by decoding the bytes using the
 * specified charset. Returns the same empty String if empty.
 *
 * @param charset encode using this charset
 * @return new string
 */
public final String toString(Charset charset) {
 return size() == 0 ? "" : toStringInternal(charset);
}

相关文章