/* * [MakeEmptyGoList.java] * * Summary: One shot program to create empty.ser an empty/dummy go list. * * Copyright: (c) 2007-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 2.2 2007-04-27 use enum for each embellishment letter. use CSS for single icons. */ package com.mindprod.qf; import com.mindprod.go.GoList; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; /** * One shot program to create empty.ser an empty/dummy go list. * * @author Roedy Green, Canadian Mind Products * @version 2.2 2007-04-27 use enum for each embellishment letter. use CSS for single icons. * @since 2007 */ public final class MakeEmptyGoList { /** * Create an empty goList so that SeeSort can work on dirs without glossaries * * @param args not used * * @throws IOException if problem creating empty.ser */ public static void main( String[] args ) throws IOException { GoList g = new GoList( 0 ); // O P E N FileOutputStream fos = new FileOutputStream( "empty.ser" ); ObjectOutputStream oos = new ObjectOutputStream( fos ); // W R I T E oos.writeObject( g ); // C L O S E oos.close(); } }