summaryrefslogtreecommitdiff
path: root/lib/java/src/main/java/org/apache/thrift/protocol/TWriteProtocol.java
blob: e44ac8ea4752d38417f96b4d939997afb565c187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.apache.thrift.protocol;

import java.nio.ByteBuffer;
import java.util.UUID;
import org.apache.thrift.TException;

public interface TWriteProtocol {

  void writeMessageBegin(TMessage message) throws TException;

  void writeMessageEnd() throws TException;

  void writeStructBegin(TStruct struct) throws TException;

  void writeStructEnd() throws TException;

  void writeFieldBegin(TField field) throws TException;

  void writeFieldEnd() throws TException;

  void writeFieldStop() throws TException;

  void writeMapBegin(TMap map) throws TException;

  void writeMapEnd() throws TException;

  void writeListBegin(TList list) throws TException;

  void writeListEnd() throws TException;

  void writeSetBegin(TSet set) throws TException;

  void writeSetEnd() throws TException;

  void writeBool(boolean b) throws TException;

  void writeByte(byte b) throws TException;

  void writeI16(short i16) throws TException;

  void writeI32(int i32) throws TException;

  void writeI64(long i64) throws TException;

  void writeUuid(UUID uuid) throws TException;

  void writeDouble(double dub) throws TException;

  void writeString(String str) throws TException;

  void writeBinary(ByteBuffer buf) throws TException;
}