encog/encog-java-core — Issue #23: Add another type of InputStream/OutputStream for Persistence
Author: BlazingJ
Created: 2011-10-20 06:46:06+00:00
State: open

Hi,

I am a happy user of Encog Framework. (version 3.0 beta)
I have a request for a minor enhancement, in EncogPersistor interface you use Inputstream and OutputStream in read and save Method.
I read the code and you then use those stream to create a Reader (BufferedReader) and a Writer (PrintWriter) in the Helper classes.

I am saving a encog network in a model file with many other informations for our own tool.
I am also using Reader and Writer object because they are easier than InputStream/OutputStream.

The request is to add a save(Writer w, Object o) and read(Reader r) method to the EncogPersistor interface so i can use the same reader.
I think you will only have to add another constructor to the helper classes and then both read method will use EncogReadHelper object created differently.

I think you get the idea.

I know this is a very specific request, if you don't have time to do it i will try to create and submit a patch but i am not familiar with github yet.

thank you for your great work on this framework.

Julien Blaize