| |
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
PrologOutputObjectStream
public PrologOutputObjectStream(OutputStream os,
boolean usesEscapeByte)
throws IOException
getObjectStream
public ObjectOutputStream getObjectStream()
flush
public void flush()
throws IOException
- Throws:
IOException
writeObject
public void writeObject(Object obj)
throws IOException
- Throws:
IOException
size
public int size()
|