org.glassfish.grizzly.http.util.Ascii.parseLong()方法的使用及代码示例

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

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

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();
  }
}

相关文章