public abstract class ResourceProvider
extends com.pd4ml.util.Base
Modifier and Type | Field and Description |
---|---|
String |
mime |
URL |
redirected |
Constructor and Description |
---|
ResourceProvider() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canLoad(String resource,
com.pd4ml.cache.FileCache cache) |
void |
closeResourceStream() |
boolean |
dontCache() |
String |
getEncoding() |
String |
getMime() |
byte[] |
getResourceAsBytes(String resource,
com.pd4ml.cache.FileCache cache) |
abstract BufferedInputStream |
getResourceAsStream(String resource,
com.pd4ml.cache.FileCache cache) |
boolean |
isDirectory() |
File |
localFile() |
public abstract BufferedInputStream getResourceAsStream(String resource, com.pd4ml.cache.FileCache cache) throws IOException
IOException
public abstract boolean canLoad(String resource, com.pd4ml.cache.FileCache cache)
public boolean dontCache()
public File localFile()
public void closeResourceStream()
public byte[] getResourceAsBytes(String resource, com.pd4ml.cache.FileCache cache) throws IOException
IOException
public String getMime()
public String getEncoding()
public boolean isDirectory()
Revision 4.0.14 / 20220524-0134