package gizmoball.xml;

import java.io.File;
import java.io.IOException;

import gizmoball.NotImplementedException;
import gizmoball.game.GameBoard;

/**
 * A writer for the Gizmoball XML format.  This serializes {@link
 * GameBoard GameBoards} into an XML format that can then be read
 * back in to recreate the GameBoard.
 *
 * @see GizmoballReader
 * @author Austin Clements
 * @version 1.0
 */
public class GizmoballWriter {
    /**
     * This object is purely static, so this ctor is not callable.
     */
    private GizmoballWriter() {
        throw new NotImplementedException();
    }

    /**
     * Serialize the specified game board to XML in the specified
     * file.
     *
     * @param file the file to write the serialization to
     * @param board the game board to serialize
     * @throws IOException if there is an I/O problem writing to file
     */
    public static void save(File file, GameBoard board)
        throws IOException {
        throw new NotImplementedException();
    }
}
