public final class FSAHeader extends Object
fsa
package
documentation.Modifier and Type | Method and Description |
---|---|
static FSAHeader |
read(InputStream in)
Read FSA header and version from a stream, consuming read bytes.
|
static void |
write(OutputStream os,
byte version)
Writes FSA magic bytes and version information.
|
public static FSAHeader read(InputStream in) throws IOException
in
- The input stream to read data from.FSAHeader
with version information.IOException
- If the stream ends prematurely or if it contains invalid data.public static void write(OutputStream os, byte version) throws IOException
os
- The stream to write to.version
- Automaton version.IOException
- Rethrown if writing fails.Copyright © 2016. All rights reserved.