public class ProductionModeClasspathFile extends Object implements ClasspathFile
ClasspathFile
implementation oriented onto production application mode.
Communicates to the actual file via context class loader
.
Constructor and Description |
---|
ProductionModeClasspathFile(String classLoaderCompliantPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAbsolutePath()
Get an absolute path of a classpath entry.
|
long |
getLastModified()
Get last modification date of a classpath entry.
|
String |
getName()
Get a name of a classpath entry.
|
protected URL |
getUrl() |
int |
hashCode() |
InputStream |
openStream()
Get classpath file contents stream.
|
protected URL |
resolveUrl() |
public ProductionModeClasspathFile(String classLoaderCompliantPath)
public String getName()
ClasspathEntry
getName
in interface ClasspathEntry
public String getAbsolutePath()
ClasspathEntry
getAbsolutePath
in interface ClasspathEntry
/
public InputStream openStream() throws IOException
ClasspathFile
openStream
in interface ClasspathFile
IOException
public long getLastModified()
ClasspathEntry
getLastModified
in interface ClasspathEntry
long
representation of the last modified dateprotected final URL getUrl()
protected final URL resolveUrl()
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.