public class BinaryOWLOntologyDocumentSerializer extends SerializerBase
| Modifier and Type | Field and Description |
|---|---|
static byte |
CHUNK_FOLLOWS_MARKER |
| Constructor and Description |
|---|
BinaryOWLOntologyDocumentSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendOntologyChanges(BinaryOWLOutputStream dos,
OntologyChangeDataList changeRecords) |
void |
appendOntologyChanges(File file,
OntologyChangeDataList changeRecords) |
<E extends Throwable> |
read(InputStream inputStream,
BinaryOWLOntologyDocumentHandler<E> handler,
org.semanticweb.owlapi.model.OWLDataFactory df)
Reads an
OWLOntologyDocument that is stored in binary OWL. |
void |
write(OWLOntologyDocument document,
OutputStream dos)
Writes out an
OWLOntologyDocument in binary OWL. |
void |
write(OWLOntologyDocument document,
OutputStream os,
BinaryOWLMetadata documentMetadata)
Writes out an
OWLOntologyDocument in binary OWL. |
public static final byte CHUNK_FOLLOWS_MARKER
public <E extends Throwable> void read(InputStream inputStream, BinaryOWLOntologyDocumentHandler<E> handler, org.semanticweb.owlapi.model.OWLDataFactory df) throws IOException, BinaryOWLParseException, org.semanticweb.owlapi.model.UnloadableImportException, E extends Throwable
OWLOntologyDocument that is stored in binary OWL.E - The type of exception thrown by the handler.inputStream - The input stream to read the document from. Not null.handler - The handler that handels document elements as they are read. Not null.df - An OWLDataFactory that can be used to instantiate OWLObjects. Not null.IOException - If there was a problem reading from the input stream.BinaryOWLParseException - If the binary OWL format was corrupt.org.semanticweb.owlapi.model.UnloadableImportException - If an import could not be loaded.E - A custom exception type.E extends Throwablepublic void write(OWLOntologyDocument document, OutputStream dos) throws IOException
OWLOntologyDocument in binary OWL.document - The document to be written out. Not null.dos - The output stream to write the document to. Not null.IOException - If there was a problem writing to the stream.NullPointerException - if any parameters are null.public void write(OWLOntologyDocument document, OutputStream os, BinaryOWLMetadata documentMetadata) throws IOException
OWLOntologyDocument in binary OWL.document - The document to be written out. Not null.os - The output stream to write the document to. Not null.documentMetadata - Document metadata. Not null.IOException - If there was a problem writing to the stream.NullPointerException - if any parameters are null.public void appendOntologyChanges(BinaryOWLOutputStream dos, OntologyChangeDataList changeRecords) throws IOException
IOExceptionpublic void appendOntologyChanges(File file, OntologyChangeDataList changeRecords) throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.