Class SAFSerializationDFA
- java.lang.Object
- 
- net.automatalib.serialization.saf.SAFSerializationDFA
 
- 
- All Implemented Interfaces:
- InputModelDeserializer<Integer,DFA<Integer,Integer>>,- InputModelSerializationProvider<Integer,DFA<?,Integer>,DFA<Integer,Integer>>,- InputModelSerializer<Integer,DFA<?,Integer>>,- ModelDeserializer<InputModelData<Integer,DFA<Integer,Integer>>>,- ModelSerializer<InputModelData<Integer,DFA<?,Integer>>>,- SerializationProvider<InputModelData<Integer,DFA<?,Integer>>,InputModelData<Integer,DFA<Integer,Integer>>>
 
 public final class SAFSerializationDFA extends Object implements InputModelSerializationProvider<Integer,DFA<?,Integer>,DFA<Integer,Integer>> 
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SAFSerializationDFAgetInstance()InputModelData<Integer,DFA<Integer,Integer>>readModel(InputStream is)Reads the contents from the given input stream and de-serializes it into a model instance.voidwriteModel(OutputStream os, DFA<?,Integer> model, Alphabet<Integer> alphabet)Writes the model to the given output stream.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface net.automatalib.serialization.InputModelSerializerwriteModel, writeModel
 - 
Methods inherited from interface net.automatalib.serialization.ModelDeserializerreadModel, readModel, readModel
 - 
Methods inherited from interface net.automatalib.serialization.ModelSerializerwriteModel
 
- 
 
- 
- 
- 
Method Detail- 
getInstancepublic static SAFSerializationDFA getInstance() 
 - 
readModelpublic InputModelData<Integer,DFA<Integer,Integer>> readModel(InputStream is) throws IOException Description copied from interface:ModelDeserializerReads the contents from the given input stream and de-serializes it into a model instance.Note: the input stream will not be closed. - Specified by:
- readModelin interface- ModelDeserializer<InputModelData<Integer,DFA<Integer,Integer>>>
- Parameters:
- is- the input stream to read data from
- Returns:
- the de-serialized model
- Throws:
- IOException- if an error occurred while reading from the stream
 
 - 
writeModelpublic void writeModel(OutputStream os, DFA<?,Integer> model, Alphabet<Integer> alphabet) throws IOException Description copied from interface:InputModelSerializerWrites the model to the given output stream.Note: the output stream will not be closed. - Specified by:
- writeModelin interface- InputModelSerializer<Integer,DFA<?,Integer>>
- Parameters:
- os- the output stream to write to
- model- the model to write
- alphabet- the inputs of the model to which serialization should be limited
- Throws:
- IOException- when writing to the output stream fails.
 
 
- 
 
-