本文整理了Java中org.vertx.java.core.buffer.Buffer.getString()
方法的一些代码示例,展示了Buffer.getString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Buffer.getString()
方法的具体详情如下:
包路径:org.vertx.java.core.buffer.Buffer
类名称:Buffer
方法名:getString
[英]Returns a copy of a sub-sequence the Buffer as a String starting at position startand ending at position end - 1 interpreted as a String in UTF-8 encoding
[中]将缓冲区中的子序列的副本作为字符串返回,该字符串从位置START开始,在位置end-1结束,在UTF-8编码中被解释为字符串
代码示例来源:origin: io.fabric8/gateway-core
public String contentAsString() {
return content.getString(0, content.length(), "UTF-8");
}
代码示例来源:origin: jboss-fuse/fabric8
public String contentAsString() {
return content.getString(0, content.length(), "UTF-8");
}
代码示例来源:origin: vert-x/mod-lang-php
public Value getString(Env env, NumberValue start, NumberValue end) {
return env.wrapJava(buffer.getString(start.toInt(), end.toInt()));
}
代码示例来源:origin: io.fabric8/gateway-apiman
@Override
public void handle(Buffer event) {
try {
String body = event.getString(0, event.length());
String uri = request.uri().substring(1);
if (uri.contains("?")) uri = uri.substring(0, uri.indexOf("?"));
内容来源于网络,如有侵权,请联系作者删除!