public class OWLLiteralSerializer extends OWLObjectSerializer<org.semanticweb.owlapi.model.OWLLiteral>
| Constructor and Description |
|---|
OWLLiteralSerializer() |
| Modifier and Type | Method and Description |
|---|---|
org.semanticweb.owlapi.model.OWLLiteral |
readLiteral(BinaryOWLInputStream is) |
protected org.semanticweb.owlapi.model.OWLLiteral |
readObject(BinaryOWLInputStream inputStream)
Reads the binary representation of an
OWLObject from a DataOutputStream. |
void |
writeLiteral(BinaryOWLOutputStream outputStream,
org.semanticweb.owlapi.model.OWLLiteral literal) |
protected void |
writeObject(org.semanticweb.owlapi.model.OWLLiteral object,
BinaryOWLOutputStream outputStream)
Writes a binary representation of an
OWLObject to a DataOutputStream. |
read, writepublic static final String UTF_8
protected void writeObject(org.semanticweb.owlapi.model.OWLLiteral object,
BinaryOWLOutputStream outputStream)
throws IOException
OWLObjectSerializerOWLObject to a DataOutputStream. This method does NOT write the object type marker out -
only the data that represents the object.writeObject in class OWLObjectSerializer<org.semanticweb.owlapi.model.OWLLiteral>object - The object to be written. Not null.IOException - if there was a problem with writing the object to the specified stream..protected org.semanticweb.owlapi.model.OWLLiteral readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException
OWLObjectSerializerOWLObject from a DataOutputStream. The representation is
NOT prefixed with the type marker for the object type.readObject in class OWLObjectSerializer<org.semanticweb.owlapi.model.OWLLiteral>IOExceptionBinaryOWLParseExceptionpublic org.semanticweb.owlapi.model.OWLLiteral readLiteral(BinaryOWLInputStream is) throws IOException
IOExceptionpublic void writeLiteral(BinaryOWLOutputStream outputStream, org.semanticweb.owlapi.model.OWLLiteral literal) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.