Mercurial > hg > jslab
view src/samer/core_/Saveable.java @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
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; }