1 18 package org.apache.batik.transcoder; 19 20 import java.io.InputStream ; 21 import java.io.Reader ; 22 23 import org.w3c.dom.Document ; 24 import org.xml.sax.XMLReader ; 25 26 32 public class TranscoderInput { 33 34 37 protected XMLReader xmlReader; 38 39 42 protected InputStream istream; 43 44 47 protected Reader reader; 48 49 52 protected Document document; 53 54 57 protected String uri; 58 59 62 public TranscoderInput() { 63 } 64 65 70 public TranscoderInput(XMLReader xmlReader) { 71 this.xmlReader = xmlReader; 72 } 73 74 79 public TranscoderInput(InputStream istream) { 80 this.istream = istream; 81 } 82 83 88 public TranscoderInput(Reader reader) { 89 this.reader = reader; 90 } 91 92 96 public TranscoderInput(Document document) { 97 this.document = document; 98 } 99 100 104 public TranscoderInput(String uri) { 105 this.uri = uri; 106 } 107 108 113 public void setXMLReader(XMLReader xmlReader) { 114 this.xmlReader = xmlReader; 115 } 116 117 121 public XMLReader getXMLReader() { 122 return xmlReader; 123 } 124 125 130 public void setInputStream(InputStream istream) { 131 this.istream = istream; 132 } 133 134 138 public InputStream getInputStream() { 139 return istream; 140 } 141 142 147 public void setReader(Reader reader) { 148 this.reader = reader; 149 } 150 151 155 public Reader getReader() { 156 return reader; 157 } 158 159 164 public void setDocument(Document document) { 165 this.document = document; 166 } 167 168 172 public Document getDocument() { 173 return document; 174 } 175 176 180 public void setURI(String uri) { 181 this.uri = uri; 182 } 183 184 188 public String getURI() { 189 return uri; 190 } 191 } 192 | Popular Tags |