Class ContextFileWriter


  • public class ContextFileWriter
    extends Object
    Writes a context file from ContextData.
    Author:
    Nick Collier
    • Constructor Detail

      • ContextFileWriter

        public ContextFileWriter()
    • Method Detail

      • write

        public void write​(File file,
                          ContextData data)
                   throws IOException
        Writes the specified ContextData to the specified file. The ContextData and its decendent subcontexts will be written.
        Parameters:
        file - the file to write to
        data - the ContextData to write
        Throws:
        IOException - if there is an error writing the data.