com.clarkparsia.modularity.io
Class IncrementalClassifierPersistence

java.lang.Object
  extended by com.clarkparsia.modularity.io.IncrementalClassifierPersistence

public class IncrementalClassifierPersistence
extends java.lang.Object

Provides persistence for IncrementalClassifier objects.

Copyright: Copyright (c) 2009

Company: Clark & Parsia, LLC.

Author:
Blazej Bulka

Constructor Summary
IncrementalClassifierPersistence()
           
 
Method Summary
static IncrementalClassifier load(java.io.InputStream inputStream)
          Loads the previously saved internal state of an incremental classifier from an output stream.
static IncrementalClassifier load(java.io.InputStream inputStream, org.semanticweb.owlapi.model.OWLOntology loadedOntology)
          Loads the previously saved internal state of an incremental classifier from an output stream.
static void save(IncrementalClassifier classifier, java.io.OutputStream outputStream)
          Saves the internal state of an incremental classifier to an output stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementalClassifierPersistence

public IncrementalClassifierPersistence()
Method Detail

save

public static void save(IncrementalClassifier classifier,
                        java.io.OutputStream outputStream)
                 throws java.io.IOException
Saves the internal state of an incremental classifier to an output stream.

Parameters:
classifier - the classifier to be saved
outputStream - the output stream where the classifier should be saved
Throws:
java.io.IOException - if an error should occur during the save operation

load

public static IncrementalClassifier load(java.io.InputStream inputStream)
                                  throws java.io.IOException
Loads the previously saved internal state of an incremental classifier from an output stream.

Parameters:
ontologyManager - the ontology manager
inputStream - the input stream containing the previously saved internal state of an incremental classifier
Returns:
the newly created incremental classifier
Throws:
java.io.IOException - if an error should occur during the reading
OWLReasonerException

load

public static IncrementalClassifier load(java.io.InputStream inputStream,
                                         org.semanticweb.owlapi.model.OWLOntology loadedOntology)
                                  throws java.io.IOException
Loads the previously saved internal state of an incremental classifier from an output stream.

Parameters:
ontologyManager - the ontology manager
inputStream - the input stream containing the previously saved internal state of an incremental classifier
Returns:
the newly created incremental classifier
Throws:
java.io.IOException - if an error should occur during the reading
OWLReasonerException


Copyright © 2004 Evren Sirin. All Rights Reserved.