reads a serialized object from the specified handle
$handle - the handle to read from (defaults to stdin)
the object read from the handle. $null is returned in the event there is any trouble.
# sleep can interoperate with Java servers by serializing objects # and sending them over a channel... $handle = connect("127.0.0.1", 9998); $list = [new LinkedList]; # do some stuff to $list # write a java.util.LinkedList to $handle writeAsObject($handle, $list); # read an object in. $object = readAsObject($handle);