| Constructor and Description |
|---|
Locators() |
| Modifier and Type | Method and Description |
|---|---|
static String |
format(String message,
Locator loc)
Formats the message with the location information.
|
static String |
format(String message,
Locator loc)
Formats the message with the location information.
|
static String |
format(String message,
SourceLocator loc)
Formats the message with the location information.
|
static String |
format(String message,
String pubId,
String sysId,
int lineno,
int colno)
Formats the message with the location information.
|
static Location |
toLocation(Locator loc)
|
static Location |
toLocation(Locator loc)
|
static Location |
toLocation(SourceLocator loc)
Converts an instance of
SourceLocator to Location. |
public static String format(String message, Locator loc)
loc - the location information. Ignored if null.public static String format(String message, Locator loc)
loc - the location information. Ignored if null.public static String format(String message, SourceLocator loc)
loc - the location information. Ignored if null.public static String format(String message, String pubId, String sysId, int lineno, int colno)
pubId - the public ID (ignored if null)sysId - the system ID (ignored if null)lineno - the line number (ignored if negative)colno - the line number (ignored if negative)public static Location toLocation(SourceLocator loc)
SourceLocator to Location.
If loc is null, this method returns null.Copyright © 2018. All rights reserved.