public class BinaryIrtgOutputCodec extends OutputCodec<InterpretedTreeAutomaton>
BinaryIrtgInputCodec much faster than a text-based codec
could.
To convert between binary and human-readable representations, see
GrammarConverter.
| Constructor and Description |
|---|
BinaryIrtgOutputCodec() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Translates the specified .irtg file to a .irtb file at the same location.
|
void |
write(InterpretedTreeAutomaton irtg,
OutputStream ostream)
Writes a string representation of a given object to an output stream.
|
addOptions, asString, asStringSupplier, getAllOutputCodecs, getMetadata, getOption, getOutputCodecByExtension, getOutputCodecByName, getOutputCodecs, hasTrueOptionpublic void write(InterpretedTreeAutomaton irtg, OutputStream ostream) throws IOException, UnsupportedOperationException
OutputCodecwrite in class OutputCodec<InterpretedTreeAutomaton>IOException - if something went wrong with I/OUnsupportedOperationException - if a problem occurred in computing
the representation of the objectpublic static void main(String[] args) throws IOException
args - IOExceptionCopyright © 2017. All rights reserved.