public interface FSASerializer
Modifier and Type | Method and Description |
---|---|
Set<FSAFlags> |
getFlags()
Returns the set of flags supported by the serializer (and the output automaton).
|
<T extends OutputStream> |
serialize(FSA fsa,
T os)
Serialize a finite state automaton to an output stream.
|
FSASerializer |
withAnnotationSeparator(byte annotationSeparator)
Supports built-in annotation separator.
|
FSASerializer |
withFiller(byte filler)
Supports built-in filler separator.
|
FSASerializer |
withLogger(IMessageLogger logger)
Log extra messages during construction.
|
FSASerializer |
withNumbers()
Supports built-in right language count on nodes, speeding up perfect hash counts.
|
<T extends OutputStream> T serialize(FSA fsa, T os) throws IOException
IOException
Set<FSAFlags> getFlags()
FSASerializer withLogger(IMessageLogger logger)
FSASerializer withFiller(byte filler)
getFlags()
returns
FSAFlags.SEPARATORS
.FSASerializer withAnnotationSeparator(byte annotationSeparator)
getFlags()
returns
FSAFlags.SEPARATORS
.FSASerializer withNumbers()
getFlags()
returns FSAFlags.NUMBERS
.Copyright © 2016. All rights reserved.