annotate 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
rev   line source
samer@0 1 package samer.core;
samer@0 2
samer@0 3 import java.io.*;
samer@0 4
samer@0 5 /** Interface for objects that can be saved in
samer@0 6 binary or text format. Don't need to implement all
samer@0 7 methods, eg if no binary format. Just throw an exception
samer@0 8 instead. */
samer@0 9
samer@0 10 public interface Saveable {
samer@0 11 void load(InputStream in) throws Exception;
samer@0 12 void save(OutputStream out) throws Exception;
samer@0 13 void read(Reader rdr) throws Exception;
samer@0 14 void write(Writer wr) throws Exception;
samer@0 15 }