/** * Apppends a raw string (converted to lower-case). */ public KeyBuilder $append(String value) { // TODO optimized toLowerCase? try { if(head != sink.writeStrUTF8(value.toLowerCase(), this, tail)) throw bo(); } catch (IOException e) { throw snh(); } return this; }
/** * Apppends a raw string, no lower case. */ public KeyBuilder $appendNOLC(String value) { try { if(head != sink.writeStrUTF8(value, this, tail)) throw bo(); } catch (IOException e) { throw snh(); } return this; }
/** * Apppends a string. */ public ByteStringBuilder append(String value) { try { if(head != sink.writeStrUTF8(value, this, tail)) throw bo(); } catch (IOException e) { throw snh(); } return this; } }
/** * Apppends a string (converted to lower-case). */ public KeyBuilder append(String value) { // TODO optimized toLowerCase? try { if(head != sink.writeByte((byte)0, this, sink.writeStrUTF8(value.toLowerCase(), this, tail))) throw bo(); } catch (IOException e) { throw snh(); } return this; }
/** * Apppends a string, no lower case. */ public KeyBuilder appendNOLC(String value) { try { if(head != sink.writeByte((byte)0, this, sink.writeStrUTF8(value, this, tail))) throw bo(); } catch (IOException e) { throw snh(); } return this; }
tail = sink.writeStrUTF8( value, this, tail = sink.writeStrUTF8( value, this,
public void writeString(int fieldNumber, String value, boolean repeated) throws IOException { final String name = schema.getFieldName(fieldNumber); tail = sink.writeByte(END_TAG, this, sink.writeStrAscii(name, this, sink.writeByteArray(START_SLASH_TAG, this, sink.writeStrUTF8(value, this, sink.writeByte(END_TAG, this, sink.writeStrAscii(name, this, sink.writeByte(START_TAG, this, tail))))))); }