|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjet.utils.Resource
public class Resource
ValueHolder Class
| Field Summary | |
|---|---|
private byte[] |
bytes
Content |
private java.lang.String |
contentType
content type of resource |
private java.lang.String |
resourcename
resource name |
| Constructor Summary | |
|---|---|
Resource(java.lang.String resourcename)
|
|
Resource(java.lang.String resourcename,
java.lang.String contentType,
byte[] bytes)
Constructor |
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Returns the bytes of the resource |
java.lang.String |
getContentType()
returns the content type |
java.lang.String |
getResourceName()
Returns the reource name |
void |
setBytes(byte[] bytes)
|
void |
setContentType(java.lang.String contentType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private byte[] bytes
private java.lang.String resourcename
private java.lang.String contentType
| Constructor Detail |
|---|
public Resource(java.lang.String resourcename)
public Resource(java.lang.String resourcename,
java.lang.String contentType,
byte[] bytes)
resourcename - contentType - bytes - | Method Detail |
|---|
public byte[] getBytes()
public java.lang.String getResourceName()
public java.lang.String getContentType()
public void setBytes(byte[] bytes)
bytes - the bytes to setpublic void setContentType(java.lang.String contentType)
contentType - the contentType to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||