Mercurial > hg > jslab
view src/samer/core_/Saveable.java @ 8:5e3cbbf173aa tip
Reorganise some more
author | samer |
---|---|
date | Fri, 05 Apr 2019 22:41:58 +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; }