Home
last modified time | relevance | path

Searched refs:inputSource (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/main/java/javax/xml/transform/sax/
DSAXSource.java72 public SAXSource(XMLReader reader, InputSource inputSource) { in SAXSource() argument
74 this.inputSource = inputSource; in SAXSource()
89 public SAXSource(InputSource inputSource) { in SAXSource() argument
90 this.inputSource = inputSource; in SAXSource()
116 public void setInputSource(InputSource inputSource) { in setInputSource() argument
117 this.inputSource = inputSource; in setInputSource()
126 return inputSource; in getInputSource()
145 if (null == inputSource) { in setSystemId()
146 inputSource = new InputSource(systemId); in setSystemId()
148 inputSource.setSystemId(systemId); in setSystemId()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DJaxenXPathTestSuite.java91 InputSource inputSource = new InputSource("file:" + jaxenHome + "/" + url); in suite() local
93 contextToTestSuite(result, url, inputSource, context); in suite()
104 InputSource inputSource, Element element) { in contextToTestSuite() argument
120 Context context = new Context(inputSource, url, select); in contextToTestSuite()
218 private final InputSource inputSource;
222 Context(InputSource inputSource, String url, String select) {
223 this.inputSource = inputSource;
231 return (Node) xpath.evaluate(select, inputSource, XPathConstants.NODE);
DExpatSaxParserTest.java539 InputSource inputSource = new InputSource( in testExternalEntity() local
541 inputSource.setEncoding("utf-8"); in testExternalEntity()
542 return inputSource; in testExternalEntity()
DDomTest.java1685 InputSource inputSource = new InputSource(new ByteArrayInputStream(xml)); in testBomAndByteInputWithExplicitCharset() local
1686 inputSource.setEncoding("UTF-8"); in testBomAndByteInputWithExplicitCharset()
1687 document = builder.parse(inputSource); in testBomAndByteInputWithExplicitCharset()
1692 InputSource inputSource = new InputSource(new StringReader("\ufeff<input/>")); in testBomAndCharacterInput() local
1693 inputSource.setEncoding("UTF-8"); in testBomAndCharacterInput()
1695 builder.parse(inputSource); in testBomAndCharacterInput()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java283 InputSource inputSource = entityResolver.resolveEntity( in handleExternalEntity() local
285 if (inputSource == null) { in handleExternalEntity()
304 String encoding = pickEncoding(inputSource); in handleExternalEntity()
308 pointer, inputSource.getPublicId(), in handleExternalEntity()
309 inputSource.getSystemId()); in handleExternalEntity()
311 parseExternalEntity(entityParser, inputSource); in handleExternalEntity()
320 private String pickEncoding(InputSource inputSource) { in pickEncoding() argument
321 Reader reader = inputSource.getCharacterStream(); in pickEncoding()
326 String encoding = inputSource.getEncoding(); in pickEncoding()
334 InputSource inputSource) throws IOException, SAXException { in parseExternalEntity() argument
[all …]