public final class TAFSerializationDFA extends Object implements InputModelSerializationProvider<String,DFA<?,String>,DFA<Integer,String>>
Modifier and Type | Method and Description |
---|---|
static TAFSerializationDFA |
getInstance() |
InputModelData<String,DFA<Integer,String>> |
readModel(InputStream is)
Reads the contents from the given input stream and de-serializes it into a model instance.
|
void |
writeModel(OutputStream os,
DFA<?,String> model,
Alphabet<String> alphabet)
Writes the model to the given output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeModel, writeModel
writeModel
readModel, readModel, readModel
public static TAFSerializationDFA getInstance()
public void writeModel(OutputStream os, DFA<?,String> model, Alphabet<String> alphabet) throws IOException
InputModelSerializer
Note: the output stream will not be closed.
writeModel
in interface InputModelSerializer<String,DFA<?,String>>
os
- the output stream to write tomodel
- the model to writealphabet
- the inputs of the model to which serialization should be limitIOException
- when writing to the output stream fails.public InputModelData<String,DFA<Integer,String>> readModel(InputStream is) throws IOException
ModelDeserializer
Note: the input stream will not be closed.
readModel
in interface ModelDeserializer<InputModelData<String,DFA<Integer,String>>>
is
- the input stream to read data fromIOException
- if an error occurred while reading from the streamCopyright © 2020. All rights reserved.