|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectOutputCodec
public abstract class OutputCodec
The abstract base class for all output codecs. Derived classes
implement the method encode
, which is responsible
for writing an encoding of the labelled dominance graph to
a writer.
Constructor Summary | |
---|---|
OutputCodec()
|
Method Summary | |
---|---|
abstract void |
encode(DomGraph graph,
NodeLabels labels,
Writer writer)
Encodes a dominance graph into a string representation for this output codec. |
abstract void |
print_footer(Writer writer)
Prints a footer at the end of a file to which the USR is written. |
abstract void |
print_header(Writer writer)
Prints a header at the beginning of a file to which the USR is written. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputCodec()
Method Detail |
---|
public abstract void encode(DomGraph graph, NodeLabels labels, Writer writer) throws IOException, MalformedDomgraphException
graph
and labels
.
The USR is written to the writer
.
graph
- the dominance graphlabels
- the node labels for this dominance graphwriter
- the writer to which the encoded USR will be written
IOException
- if an I/O error occurred while writing to the
writer
MalformedDomgraphException
- if the graph cannot
be encoded by this codecpublic abstract void print_header(Writer writer) throws IOException
writer
- the writer
IOException
- if an I/O error occurredpublic abstract void print_footer(Writer writer) throws IOException
writer
- the writer
IOException
- if an I/O error occurred
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |