/** * Convert the byte buffer to a string an specific character encoding * * @param charsetName Valid Java Character Set Name */ public String toString(String charsetName) throws UnsupportedEncodingException { return new String(this.get(), 0, this.getCount(), charsetName); }
/** * Convert the byte buffer to a string an specific character encoding * * @param charsetName Valid Java Character Set Name */ public String toString(String charsetName) throws UnsupportedEncodingException { return new String(this.get(), 0, this.getCount(), charsetName); }
/** * Convert the byte buffer to a string an specific character encoding * * @param charsetName Valid Java Character Set Name */ public String toString(String charsetName) throws UnsupportedEncodingException { return new String(this.get(), 0, this.getCount(), charsetName); }
/** * Convert the byte buffer to a string an specific character encoding * * @param charsetName Valid Java Character Set Name */ public String toString(String charsetName) throws UnsupportedEncodingException { return new String(this.get(), 0, this.getCount(), charsetName); }
/** * Convert the byte buffer to a string an specific character encoding * * @param charsetName Valid Java Character Set Name */ public String toString(String charsetName) throws UnsupportedEncodingException { return new String(this.get(), 0, this.getCount(), charsetName); }
@Override public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
@Override public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
@Override public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
@Override public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
@Override public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
@Override public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
@Override public Object clone() throws CloneNotSupportedException { Buffer result = (Buffer) super.clone(); result.copy(this.get(), 0, this.getCount()); return result; } }
@Override public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
@Override public void writeBuffer(Buffer buf, String tag) throws IOException { byte[] barr = buf.get(); int len = buf.getCount(); Utils.writeVInt(out, len); out.write(barr, 0, len); }
/** * Writes a bytes buffer as a typed bytes sequence. * * @param buffer the bytes buffer to be written * @throws IOException */ public void writeBytes(Buffer buffer) throws IOException { writeBytes(buffer.get(), Type.BYTES.code, buffer.getCount()); }
/** * Writes a bytes buffer as a typed bytes sequence. * * @param buffer the bytes buffer to be written * @throws IOException */ public void writeBytes(Buffer buffer) throws IOException { writeBytes(buffer.get(), Type.BYTES.code, buffer.getCount()); }