com.declarativa.interprolog.util
Class PrologOutputObjectStream
java.lang.Object
|
+--com.declarativa.interprolog.util.PrologOutputObjectStream
- public class PrologOutputObjectStream
- extends Object
Vaguely similar to an ObjectOutputStream, but sends the total number of serialized bytes up front,
so Prolog can keep grammar and socket reads separate without hanging for input
PrologOutputObjectStream
public PrologOutputObjectStream(OutputStream os)
throws IOException
getObjectStream
public ObjectOutputStream getObjectStream()
flush
public void flush()
throws IOException
IOException
writeObject
public void writeObject(Object obj)
throws IOException
IOException
size
public int size()