/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
/** * 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()); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }
@Override public String toStringContent(Charset charset, int position, int limit) { checkDispose(); return Buffers.toStringContent(visible, charset, position, limit); }