1 18 package org.apache.batik.transcoder; 19 20 import java.io.OutputStream ; 21 import java.io.Writer ; 22 23 import org.w3c.dom.Document ; 24 import org.xml.sax.XMLFilter ; 25 26 32 public class TranscoderOutput { 33 34 37 protected XMLFilter xmlFilter; 38 39 42 protected OutputStream ostream; 43 44 47 protected Writer writer; 48 49 52 protected Document document; 53 54 57 protected String uri; 58 59 62 public TranscoderOutput() { 63 } 64 65 70 public TranscoderOutput(XMLFilter xmlFilter) { 71 this.xmlFilter = xmlFilter; 72 } 73 74 79 public TranscoderOutput(OutputStream ostream) { 80 this.ostream = ostream; 81 } 82 83 88 public TranscoderOutput(Writer writer) { 89 this.writer = writer; 90 } 91 92 96 public TranscoderOutput(Document document) { 97 this.document = document; 98 } 99 100 104 public TranscoderOutput(String uri) { 105 this.uri = uri; 106 } 107 108 113 public void setXMLFilter(XMLFilter xmlFilter) { 114 this.xmlFilter = xmlFilter; 115 } 116 117 121 public XMLFilter getXMLFilter() { 122 return xmlFilter; 123 } 124 125 126 131 public void setOutputStream(OutputStream ostream) { 132 this.ostream = ostream; 133 } 134 135 139 public OutputStream getOutputStream() { 140 return ostream; 141 } 142 143 148 public void setWriter(Writer writer) { 149 this.writer = writer; 150 } 151 152 156 public Writer getWriter() { 157 return writer; 158 } 159 160 165 public void setDocument(Document document) { 166 this.document = document; 167 } 168 169 173 public Document getDocument() { 174 return document; 175 } 176 177 181 public void setURI(String uri) { 182 this.uri = uri; 183 } 184 185 189 public String getURI() { 190 return uri; 191 } 192 } 193 | Popular Tags |