ERROR ("There was an error reading from a file");
System.err.println (e.getMessage ()); ERROR ("There was an error writing to a file");
    public void work ()    {        try        {            if (fileType == Integer.TYPE)            {                outputStream.writeInt (input.popInt ());            } else            if (fileType == Short.TYPE)            {                outputStream.writeShort (input.popShort ());            } else            if (fileType == Character.TYPE)            {                outputStream.writeChar (input.popChar ());            } else            if (fileType == Float.TYPE)            {                outputStream.writeFloat (input.popFloat ());            } else            if (Class.forName ("java.io.Serializable").isAssignableFrom (fileType))            {                outputStream.writeObject (input.pop ());            } else            {                ERROR ("You must define a writer for your type here.\nIf you're trying to write an object, it should be a serializable object\n(and then you won't have to do anything special).");            }        }        catch (Throwable e)        {            ERROR ("There was an error reading from a file");        }    }