本文整理了Java中com.google.protobuf.ByteString.toStringInternal()
方法的一些代码示例,展示了ByteString.toStringInternal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ByteString.toStringInternal()
方法的具体详情如下:
包路径:com.google.protobuf.ByteString
类名称: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);
}
内容来源于网络,如有侵权,请联系作者删除!