public Utf8(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; }
public Utf8(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; }
/** Set to the contents of a String. */ public Utf8 set(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; return this; }
/** Set to the contents of a String. */ public Utf8 set(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; return this; }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String string) throws IOException { byte[] bytes = Utf8.getBytesFor(string); encodeString(bytes, 0, bytes.length); }
/** Set to the contents of a String. */ public Utf8 set(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; return this; }
public Utf8(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; }
/** Set to the contents of a String. */ public Utf8 set(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; return this; }
public Utf8(String string) { this.bytes = getBytesFor(string); this.length = bytes.length; this.string = string; }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }
@Override public void writeString(String str) throws IOException { byte[] bytes = Utf8.getBytesFor(str); writeBytes(bytes, 0, bytes.length); }