view src/samer/core_/Saveable.java @ 5:b67a33c44de7

Remove some crap, etc
author samer
date Fri, 05 Apr 2019 21:34:25 +0100
parents bf79fb79ee13
children
line wrap: on
line source
package samer.core;

import java.io.*;

/** Interface for objects that can be saved in
	binary or text format. Don't need to implement all
	methods, eg if no binary format. Just throw an exception
	instead. */

public interface Saveable {
	void load(InputStream in) throws Exception;
	void save(OutputStream out)  throws Exception;
	void read(Reader rdr)  throws Exception;
	void write(Writer wr)  throws Exception;
}