encog-java-core
encog-java-core copied to clipboard
Add another type of InputStream/OutputStream for Persistence
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
I will take a look at it. If you do implement it, and you just want to submit the code to the class, feel free to post it as a comment here and I will actually place it into GitHub for you if you like.