public abstract class OWLObjectSerializer<C extends org.semanticweb.owlapi.model.OWLObject> extends SerializerBase
An inteface to an object that can read and write the binary OWL representation of OWLObjects. All subclasses of this class are thread safe.
| Constructor and Description |
|---|
OWLObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
C |
read(BinaryOWLInputStream inputStream) |
protected abstract C |
readObject(BinaryOWLInputStream inputStream)
Reads the binary representation of an
OWLObject from a DataOutputStream. |
void |
write(C object,
BinaryOWLOutputStream outputStream) |
protected abstract void |
writeObject(C object,
BinaryOWLOutputStream outputStream)
Writes a binary representation of an
OWLObject to a DataOutputStream. |
public final void write(C object, BinaryOWLOutputStream outputStream) throws IOException
IOExceptionpublic final C read(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException
IOExceptionBinaryOWLParseExceptionprotected abstract void writeObject(C object, BinaryOWLOutputStream outputStream) throws IOException
OWLObject to a DataOutputStream. This method does NOT write the object type marker out -
only the data that represents the object.object - The object to be written. Not null.outputStream - IOException - if there was a problem with writing the object to the specified stream..protected abstract C readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException
OWLObject from a DataOutputStream. The representation is
NOT prefixed with the type marker for the object type.inputStream@throws - IOException If there was a problem reading the object from the stream.IOExceptionBinaryOWLParseExceptionCopyright © 2015. All Rights Reserved.