Resource
public class PrefixJarResource extends Object implements Resource
Constructor | Description |
---|---|
PrefixJarResource() |
Constructor.
|
PrefixJarResource(JarFile jarFile,
String prefix) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
Stream<String> |
getAllLocations() |
|
JarFile |
getJarFile() |
Get the JAR file.
|
String |
getPrefix() |
Get the prefix.
|
URL |
getResource(String location) |
Get the resource.
|
InputStream |
getResourceAsStream(String location) |
Get the resource as a stream.
|
void |
setJarFile(JarFile jarFile) |
Set the JAR file.
|
void |
setPrefix(String prefix) |
Set the prefix.
|
public URL getResource(String location)
Resource
getResource
in interface Resource
location
- the location.public InputStream getResourceAsStream(String location)
getResourceAsStream
in interface Resource
location
- the resource location.Resource.getResourceAsStream(java.lang.String)
public Stream<String> getAllLocations()
getAllLocations
in interface Resource
public JarFile getJarFile()
public String getPrefix()
public void setJarFile(JarFile jarFile)
jarFile
- the JAR file.public void setPrefix(String prefix)
prefix
- the prefix.Copyright © 2020 Piranha Cloud. All rights reserved.