jInterface to create External Erlang Term
问题 How can I format the the following erlang term: { atom, "message" } In jInterface to an external format that I may call in an erlang shell erlang:binary_to_term( Binary ) Example: Note that since the tuple will be sent over the net, I finish by converting to byte[]. OtpErlangObject[] msg = new OtpErlangObject[2]; msg[0] = new OtpErlangAtom( "atom" ); msg[1] = new OtpErlangString( "message" ); OtpErlangTuple reply = new OtpErlangTuple(msg); OtpOutputStream stream = new OtpOutputStream(reply);