## Uses of Interface
javax.xml.transform.SourceLocator

- Packages that use SourceLocator
  Package | Description
  --- | ---
  javax.xml.transform | This package defines the generic APIs for processing transformation instructions, and performing a transformation from source to result.
  javax.xml.transform.dom | This package implements DOM-specific transformation APIs.

- - ### Uses of SourceLocator in javax.xml.transform

    Methods in javax.xml.transform that return SourceLocator
    Modifier and Type | Method and Description
    --- | ---
    `SourceLocator` | TransformerException.`getLocator()` Method getLocator retrieves an instance of a SourceLocator object that specifies where an error occured.

    Methods in javax.xml.transform with parameters of type SourceLocator
    Modifier and Type | Method and Description
    --- | ---
    `void` | TransformerException.`setLocator(SourceLocator location)` Method setLocator sets an instance of a SourceLocator object that specifies where an error occured.

    Constructors in javax.xml.transform with parameters of type SourceLocator
    Constructor and Description
    `TransformerConfigurationException(String message, SourceLocator locator)` Create a new TransformerConfigurationException from a message and a Locator.
    `TransformerConfigurationException(String message, SourceLocator locator, Throwable e)` Wrap an existing exception in a TransformerConfigurationException.
    `TransformerException(String message, SourceLocator locator)` Create a new TransformerException from a message and a Locator.
    `TransformerException(String message, SourceLocator locator, Throwable e)` Wrap an existing exception in a TransformerException.

  - ### Uses of SourceLocator in javax.xml.transform.dom

    Subinterfaces of SourceLocator in javax.xml.transform.dom
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `DOMLocator` Indicates the position of a node in a source DOM, intended primarily for error reporting.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.