Home
last modified time | relevance | path

Searched refs:locator (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/javax/xml/transform/
DTransformerException.java32 SourceLocator locator; field in TransformerException
41 return locator; in getLocator()
51 locator = location; in setLocator()
129 this.locator = null; in TransformerException()
142 this.locator = null; in TransformerException()
162 this.locator = null; in TransformerException()
175 public TransformerException(String message, SourceLocator locator) { in TransformerException() argument
180 this.locator = locator; in TransformerException()
191 public TransformerException(String message, SourceLocator locator, in TransformerException() argument
197 this.locator = locator; in TransformerException()
[all …]
DTransformerConfigurationException.java79 SourceLocator locator) { in TransformerConfigurationException() argument
80 super(message, locator); in TransformerConfigurationException()
92 SourceLocator locator, in TransformerConfigurationException() argument
94 super(message, locator, e); in TransformerConfigurationException()
/libcore/luni/src/main/java/org/xml/sax/
DSAXParseException.java59 public SAXParseException (String message, Locator locator) { in SAXParseException() argument
61 if (locator != null) { in SAXParseException()
62 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException()
63 locator.getLineNumber(), locator.getColumnNumber()); in SAXParseException()
85 public SAXParseException (String message, Locator locator, in SAXParseException() argument
88 if (locator != null) { in SAXParseException()
89 init(locator.getPublicId(), locator.getSystemId(), in SAXParseException()
90 locator.getLineNumber(), locator.getColumnNumber()); in SAXParseException()
DDocumentHandler.java76 public abstract void setDocumentLocator (Locator locator); in setDocumentLocator() argument
DContentHandler.java88 public void setDocumentLocator (Locator locator); in setDocumentLocator() argument
DHandlerBase.java144 public void setDocumentLocator (Locator locator) in setDocumentLocator() argument
/libcore/luni/src/main/java/org/xml/sax/helpers/
DLocatorImpl.java79 public LocatorImpl (Locator locator) in LocatorImpl() argument
81 setPublicId(locator.getPublicId()); in LocatorImpl()
82 setSystemId(locator.getSystemId()); in LocatorImpl()
83 setLineNumber(locator.getLineNumber()); in LocatorImpl()
84 setColumnNumber(locator.getColumnNumber()); in LocatorImpl()
DParserAdapter.java426 public void setDocumentLocator (Locator locator) in setDocumentLocator() argument
428 this.locator = locator; in setDocumentLocator()
430 contentHandler.setDocumentLocator(locator); in setDocumentLocator()
725 locator = null; in setupParser()
785 if (locator != null) { in makeException()
786 return new SAXParseException(message, locator); in makeException()
850 Locator locator; field in ParserAdapter
DXMLFilterImpl.java441 public void setDocumentLocator (Locator locator) in setDocumentLocator() argument
443 this.locator = locator; in setDocumentLocator()
445 contentHandler.setDocumentLocator(locator); in setDocumentLocator()
710 private Locator locator = null; field in XMLFilterImpl
DXMLReaderAdapter.java261 public void setDocumentLocator (Locator locator) in setDocumentLocator() argument
264 documentHandler.setDocumentLocator(locator); in setDocumentLocator()
DDefaultHandler.java164 public void setDocumentLocator (Locator locator) in setDocumentLocator() argument
/libcore/luni/src/main/java/org/xml/sax/ext/
DLocator2Impl.java52 public Locator2Impl (Locator locator) in Locator2Impl() argument
54 super (locator); in Locator2Impl()
55 if (locator instanceof Locator2) { in Locator2Impl()
56 Locator2 l2 = (Locator2) locator; in Locator2Impl()
/libcore/luni/src/main/java/org/apache/harmony/xml/
DExpatParser.java61 private final Locator locator = new ExpatLocator(); field in ExpatParser
290 + " '" + this.systemId + "' at " + locator, e); in handleExternalEntity()
383 throw new ParseException("No input specified.", locator); in parseExternalEntity()
419 throw new ParseException(e.getMessage(), this.locator); in append()
441 throw new ParseException(e.getMessage(), this.locator); in append()
474 throw new ParseException(e.getMessage(), this.locator); in append()
512 throw new ParseException(e.getMessage(), locator); in parseFragment()
528 throw new ParseException(e.getMessage(), this.locator); in parseFragment()
536 contentHandler.setDocumentLocator(this.locator); in startDocument()
559 throw new ParseException(e.getMessage(), this.locator); in finish()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DExpatSaxParserTest.java187 Locator locator; field in ExpatSaxParserTest.NamespaceHandler
201 public void setDocumentLocator(Locator locator) { in setDocumentLocator() argument
202 this.locator = locator; in setDocumentLocator()
207 assertNotNull(locator); in startDocument()
235 assertEquals(1, locator.getLineNumber()); in startElement()
300 assertEquals(3, locator.getLineNumber()); in endElement()
424 Locator locator; field in ExpatSaxParserTest.TestDtdHandler
439 public void setDocumentLocator(Locator locator) { in setDocumentLocator() argument
440 this.locator = locator; in setDocumentLocator()
DSimpleParserTest.java141 public void setDocumentLocator(Locator locator) {}
/libcore/luni/src/main/java/org/apache/harmony/xml/parsers/
DDocumentBuilderImpl.java140 LocatorImpl locator = new LocatorImpl(); in parse()
142 locator.setPublicId(source.getPublicId()); in parse()
143 locator.setSystemId(systemId); in parse()
144 locator.setLineNumber(ex.getLineNumber()); in parse()
145 locator.setColumnNumber(ex.getColumnNumber()); in parse()
147 SAXParseException newEx = new SAXParseException(ex.getMessage(), locator); in parse()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/
DXMLReaderAdapterTest.java188 LocatorImpl locator = new LocatorImpl(); in testSetDocumentLocator() local
189 adapter.setDocumentLocator(locator); in testSetDocumentLocator()
192 assertEquals(new Object[] { locator }, logger.getArgs()); in testSetDocumentLocator()
196 adapter.setDocumentLocator(locator); in testSetDocumentLocator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMockHandler.java85 public void setDocumentLocator(Locator locator) { in setDocumentLocator() argument
86 logger.add("setDocumentLocator", locator); in setDocumentLocator()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DSAXParserTestSupport.java290 public void setDocumentLocator(Locator locator) { in setDocumentLocator() argument
455 public void setDocumentLocator(Locator locator) { in setDocumentLocator() argument