java/sql-dk/src/main/java/info/globalcode/sql/dk/formatting/FormatterContext.java
author František Kučera <franta-hg@frantovo.cz>
Mon, 04 Mar 2019 20:15:24 +0100
branchv_0
changeset 238 4a1864c3e867
parent 155 java/sql-dk/src/info/globalcode/sql/dk/formatting/FormatterContext.java@eb3676c6929b
child 246 277c18b48762
permissions -rw-r--r--
mavenized: sql-dk
franta-hg@24
     1
/**
franta-hg@24
     2
 * SQL-DK
franta-hg@24
     3
 * Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@24
     4
 *
franta-hg@24
     5
 * This program is free software: you can redistribute it and/or modify
franta-hg@24
     6
 * it under the terms of the GNU General Public License as published by
franta-hg@24
     7
 * the Free Software Foundation, either version 3 of the License, or
franta-hg@24
     8
 * (at your option) any later version.
franta-hg@24
     9
 *
franta-hg@24
    10
 * This program is distributed in the hope that it will be useful,
franta-hg@24
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@24
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@24
    13
 * GNU General Public License for more details.
franta-hg@24
    14
 *
franta-hg@24
    15
 * You should have received a copy of the GNU General Public License
franta-hg@24
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@24
    17
 */
franta-hg@24
    18
package info.globalcode.sql.dk.formatting;
franta-hg@24
    19
franta-hg@104
    20
import info.globalcode.sql.dk.configuration.Properties;
franta-hg@24
    21
import java.io.OutputStream;
franta-hg@24
    22
franta-hg@24
    23
/**
franta-hg@155
    24
 * To be passed from the SQL-DK core to the formatter.
franta-hg@24
    25
 *
franta-hg@24
    26
 * @author Ing. František Kučera (frantovo.cz)
franta-hg@24
    27
 */
franta-hg@24
    28
public class FormatterContext {
franta-hg@24
    29
franta-hg@24
    30
	private OutputStream outputStream;
franta-hg@104
    31
	private Properties properties;
franta-hg@24
    32
franta-hg@104
    33
	public FormatterContext(OutputStream outputStream, Properties properties) {
franta-hg@24
    34
		this.outputStream = outputStream;
franta-hg@104
    35
		this.properties = properties;
franta-hg@24
    36
	}
franta-hg@24
    37
franta-hg@24
    38
	public OutputStream getOutputStream() {
franta-hg@24
    39
		return outputStream;
franta-hg@24
    40
	}
franta-hg@104
    41
franta-hg@104
    42
	public Properties getProperties() {
franta-hg@104
    43
		return properties;
franta-hg@104
    44
	}
franta-hg@104
    45
franta-hg@104
    46
	public void setProperties(Properties properties) {
franta-hg@104
    47
		this.properties = properties;
franta-hg@104
    48
	}
franta-hg@24
    49
}