public class InternalResource extends InstallableResource
BUNDLE_START_LEVEL, DEFAULT_PRIORITY, INSTALLATION_HINT, RESOURCE_URI_HINT, TYPE_BUNDLE, TYPE_CONFIG, TYPE_FILE, TYPE_PROPERTIES
Constructor and Description |
---|
InternalResource(String scheme,
String id,
InputStream is,
Dictionary<String,Object> dict,
String type,
String digest,
Integer priority,
File dataFile,
String resourceUri) |
Modifier and Type | Method and Description |
---|---|
static InternalResource |
create(String scheme,
InstallableResource resource)
Create an internal resource.
|
Dictionary<String,Object> |
getPrivateCopyOfDictionary()
Copy given Dictionary
|
File |
getPrivateCopyOfFile()
Copy the given file and return it.
|
String |
getResourceUri()
Return the resource uri (or null)
|
String |
getURL()
The unique url of the resource.
|
void |
setPrivateCopyOfFile(File file)
Set the data file.
|
getDictionary, getDigest, getId, getInputStream, getPriority, getType, toString
public static InternalResource create(String scheme, InstallableResource resource) throws IOException
IOException
- if something is wrongpublic String getURL()
public Dictionary<String,Object> getPrivateCopyOfDictionary()
public File getPrivateCopyOfFile()
public void setPrivateCopyOfFile(File file)
public String getResourceUri()
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.