public void writeBinary(ByteBuffer bin) throws TException { int length = bin.limit() - bin.position(); writeI32(length); trans_.write(bin.array(), bin.position() + bin.arrayOffset(), length); }
public void writeListBegin(TList list) throws TException { writeByte(list.elemType); writeI32(list.size); }
public void writeSetBegin(TSet set) throws TException { writeByte(set.elemType); writeI32(set.size); }
public void writeString(String str) throws TException { try { byte[] dat = str.getBytes("UTF-8"); writeI32(dat.length); trans_.write(dat, 0, dat.length); } catch (UnsupportedEncodingException uex) { throw new TException("JVM DOES NOT SUPPORT UTF-8"); } }
public void writeMapBegin(TMap map) throws TException { writeByte(map.keyType); writeByte(map.valueType); writeI32(map.size); }
public void writeSetBegin(TSet set) throws TException { writeByte(set.elemType); writeI32(set.size); }
public void writeBinary(ByteBuffer bin) throws TException { int length = bin.limit() - bin.position() - bin.arrayOffset(); writeI32(length); trans_.write(bin.array(), bin.position() + bin.arrayOffset(), length); }
public void writeListBegin(TList list) throws TException { writeByte(list.elemType); writeI32(list.size); }
public void writeString(String str) throws TException { try { byte[] dat = str.getBytes("UTF-8"); writeI32(dat.length); trans_.write(dat, 0, dat.length); } catch (UnsupportedEncodingException uex) { throw new TException("JVM DOES NOT SUPPORT UTF-8"); } }
public void writeString(String str) throws TException { try { byte[] dat = str.getBytes("UTF-8"); writeI32(dat.length); trans_.write(dat, 0, dat.length); } catch (UnsupportedEncodingException uex) { throw new TException("JVM DOES NOT SUPPORT UTF-8"); } }
public void writeMapBegin(TMap map) throws TException { writeByte(map.keyType); writeByte(map.valueType); writeI32(map.size); }
public void writeMapBegin(TMap map) throws TException { writeByte(map.keyType); writeByte(map.valueType); writeI32(map.size); }