franta-hg@24: /** franta-hg@24: * SQL-DK franta-hg@24: * Copyright © 2013 František Kučera (frantovo.cz) franta-hg@24: * franta-hg@24: * This program is free software: you can redistribute it and/or modify franta-hg@24: * it under the terms of the GNU General Public License as published by franta-hg@24: * the Free Software Foundation, either version 3 of the License, or franta-hg@24: * (at your option) any later version. franta-hg@24: * franta-hg@24: * This program is distributed in the hope that it will be useful, franta-hg@24: * but WITHOUT ANY WARRANTY; without even the implied warranty of franta-hg@24: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the franta-hg@24: * GNU General Public License for more details. franta-hg@24: * franta-hg@24: * You should have received a copy of the GNU General Public License franta-hg@24: * along with this program. If not, see . franta-hg@24: */ franta-hg@24: package info.globalcode.sql.dk.formatting; franta-hg@24: franta-hg@104: import info.globalcode.sql.dk.configuration.Properties; franta-hg@24: import java.io.OutputStream; franta-hg@24: franta-hg@24: /** franta-hg@155: * To be passed from the SQL-DK core to the formatter. franta-hg@24: * franta-hg@24: * @author Ing. František Kučera (frantovo.cz) franta-hg@24: */ franta-hg@24: public class FormatterContext { franta-hg@24: franta-hg@24: private OutputStream outputStream; franta-hg@104: private Properties properties; franta-hg@24: franta-hg@104: public FormatterContext(OutputStream outputStream, Properties properties) { franta-hg@24: this.outputStream = outputStream; franta-hg@104: this.properties = properties; franta-hg@24: } franta-hg@24: franta-hg@24: public OutputStream getOutputStream() { franta-hg@24: return outputStream; franta-hg@24: } franta-hg@104: franta-hg@104: public Properties getProperties() { franta-hg@104: return properties; franta-hg@104: } franta-hg@104: franta-hg@104: public void setProperties(Properties properties) { franta-hg@104: this.properties = properties; franta-hg@104: } franta-hg@24: }