本文整理了Java中org.glassfish.grizzly.http.util.Ascii.parseLong()
方法的一些代码示例,展示了Ascii.parseLong()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ascii.parseLong()
方法的具体详情如下:
包路径:org.glassfish.grizzly.http.util.Ascii
类名称:Ascii
方法名:parseLong
[英]Parses an unsigned long from the specified sub-array of bytes.
[中]
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: javaee/grizzly
public long getLong() {
return Ascii.parseLong(buff, start,end-start);
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
代码示例来源:origin: javaee/grizzly
public static long parseLong(final DataChunk dataChunk) {
switch(dataChunk.getType()) {
case Buffer:
final BufferChunk bc = dataChunk.getBufferChunk();
return parseLong(bc.getBuffer(),
bc.getStart(),
bc.getLength());
case String:
return Long.parseLong(dataChunk.toString());
case Chars:
final CharChunk cc = dataChunk.getCharChunk();
return parseLong(cc.getBuffer(),
cc.getStart(),
cc.getLength());
default: throw new NullPointerException();
}
}
内容来源于网络,如有侵权,请联系作者删除!