@Override
    public void reset() {
        root = null;

        writers.clear();
        pushWriter(new TTransportOutputStream());

        contextStack.clear();
        contextStack.push(new BaseContext());
        currentFieldContext.clear();
        currentFieldName.clear();
    }
Create a parser which can read from {@code trans}, and create the output writer
that can write to a {@link TTransport}, optionally enabling serialization of named enums.
thrift/thrift0.13/src/main/java/com/linecorp/armeria/common/thrift/text/TTextProtocol.java