Constructor and Description |
---|
Source(ConfigurationSource source)
Constructs a Source from a ConfigurationSource.
|
Source(File file)
Constructs a new
Source with the specified file. |
Source(URI uri,
long lastModified)
Constructs a new
Source from the specified URI. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
File |
getFile()
Returns the file configuration source, or
null if this configuration source is based on an URL or has
neither a file nor an URL. |
String |
getLocation()
Returns a string describing the configuration source file or URL, or
null if this configuration source
has neither a file nor an URL. |
URI |
getURI()
Returns the configuration source URL, or
null if this configuration source is based on a file or has
neither a file nor an URL. |
int |
hashCode() |
String |
toString() |
public Source(ConfigurationSource source)
source
- The ConfigurationSource.public Source(File file)
Source
with the specified file.
file.file
- the file where the input stream originatedpublic File getFile()
null
if this configuration source is based on an URL or has
neither a file nor an URL.null
public URI getURI()
null
if this configuration source is based on a file or has
neither a file nor an URL.null
public String getLocation()
null
if this configuration source
has neither a file nor an URL.null
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.