--- Vic Cekvenich <[EMAIL PROTECTED]> wrote:
> If I can have:
>     ByteBuffer toHessian(Object/Map) {}
> and
>     Object/Map fromHessian(ByteBuffer) {}
> I'd be all set (in both as3 and java).
> 
> Can you help w/ that and then I can show you an implementation. I
> have  JSon doing Maps push to Flex from Java (basically Flex pings 
> nio server and server keeps a list of sockets open).

In ActionScript, you can use classes from the hessian.io package:

  // toHessian
  HessianOutput output = new HessianOutput(buffer);
  output.writeObject(obj);
  // At this point, you can use the buffer, but you might need
  // to reset the position to 0 to read from it.

  // fromHessian
  Hessian2Input input = new Hessian2Input(buffer);
  var obj:Object = input.readObject();

Emil



_______________________________________________
hessian-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/hessian-interest

Reply via email to