Sha256: 99c36fdf1dcd835c86a88e700be860492499315ec1dfe3ad917b07c5b32f92b0
Contents?: true
Size: 1.84 KB
Versions: 1
Compression:
Stored size: 1.84 KB
Contents
/* Copyright (C) 2005-2007 Contact: nina@acad.bg This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. All we ask is that proper credit is given for our work, which includes - but is not limited to - adding the above copyright notice to the beginning of your source code files, and to any copyright notice that you may distribute with programs based on this work. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ package toxTree.tree; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import toxTree.exceptions.DecisionMethodIOException; public abstract class AbstractTreeWriter extends AbstractTreePrinter { protected Writer writer; public AbstractTreeWriter(Writer output) { super(); setWriter(output); } public AbstractTreeWriter(OutputStream outputStream) { super(outputStream); setWriter(new OutputStreamWriter(outputStream)); } public Writer getWriter() { return writer; } public void setWriter(Writer writer) { this.writer = writer; } public void done() throws DecisionMethodIOException { if (writer != null) try { writer.flush(); writer.close(); } catch (Exception x) { throw new DecisionMethodIOException(x); } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toxtree-0.0.1 | Toxtree-v2.6.13/src/toxTree/tree/AbstractTreeWriter.java |