|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.classloader.UrlResourceSpec
org.openbp.common.classloader.BinaryResourceSpec
public abstract class BinaryResourceSpec
XClassLoader resource specification that directly provides its contents as byte array.
The UrlResourceSpec.setUrl(URL) may specify the source of the binary content.
| Field Summary | |
|---|---|
byte[] |
content
Binary content |
| Constructor Summary | |
|---|---|
BinaryResourceSpec()
Default constructor. |
|
BinaryResourceSpec(java.net.URL url)
Value constructor. |
|
BinaryResourceSpec(java.net.URL url,
byte[] content)
Value constructor. |
|
| Method Summary | |
|---|---|
byte[] |
getContent()
Gets the binary content. |
void |
setContent(byte[] content)
Sets the binary content. |
java.net.URL |
toUrl()
Gets the URL representation of this resource specification. |
| Methods inherited from class org.openbp.common.classloader.UrlResourceSpec |
|---|
getUrl, setUrl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openbp.common.classloader.ResourceSpec |
|---|
addEntriesToClassLoader |
| Field Detail |
|---|
public byte[] content
| Constructor Detail |
|---|
public BinaryResourceSpec()
public BinaryResourceSpec(java.net.URL url)
url - URL of the resource
public BinaryResourceSpec(java.net.URL url,
byte[] content)
url - URL of the resourcecontent - Binary content| Method Detail |
|---|
public byte[] getContent()
public void setContent(byte[] content)
public java.net.URL toUrl()
toUrl in interface ResourceSpectoUrl in class UrlResourceSpec
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||