org.glassfish.grizzly.memory.Buffers.toStringContent()方法的使用及代码示例

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

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

Buffers.toStringContent介绍

[英]Returns the Buffer's String representation in a form: Buffer#toString() + "[" + + "..." + + "]" For example:

HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]

[中]以以下形式返回缓冲区的字符串表示形式:Buffer#toString()+“[”+“+”..”++“]”例如:

HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]

代码示例

代码示例来源:origin: javaee/grizzly

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: javaee/grizzly

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 *
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

/**
 * Returns the {@link Buffer}'s {@link String} representation in a form:
 * {@link Buffer#toString()} + "[" + <head-chunk> + "..." + <tail-chunk> + "]"
 * For example:
 * <pre>HeapBuffer (1781633478) [pos=0 lim=285 cap=285][abcde...xyz]</pre>
 * 
 * @param buffer the {@link Buffer}, could be <tt>null</tt>
 * @param headBytesCount the number of heading bytes to include (larger or equal to 0)
 * @param tailBytesCount the number of tailing bytes to include (larger or equal to 0)
 * @return the {@link Buffer}'s {@link String} representation, or <tt>null</tt>,
 *      if the {@link Buffer} is <tt>null</tt>
 */
public String toStringContent(final Buffer buffer,
    final int headBytesCount, final int tailBytesCount) {
  if (buffer == null) {
    return null;
  }
  return toStringContent(buffer, headBytesCount, tailBytesCount,
      Charset.defaultCharset());
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-core

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-websockets-server

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: javaee/grizzly

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: org.mule.glassfish.grizzly/grizzly-framework

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

代码示例来源:origin: org.glassfish.grizzly/grizzly-http-server-core

@Override
public String toStringContent(Charset charset, int position, int limit) {
  checkDispose();
  return Buffers.toStringContent(visible, charset, position, limit);
}

相关文章