|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.resource.Resource com.cc.framework.resource.BinaryResource
This class represent a binary Web-Resource
Field Summary | |
private byte[] |
body
Resource data |
private static long |
serialVersionUID
Serial Version UID |
private MimeType |
type
MIME type of the Resource |
Fields inherited from class com.cc.framework.resource.Resource |
|
Constructor Summary | |
BinaryResource(MimeType type,
byte[] body,
Cachable cacheInfo)
Constructor for BinaryResource |
|
BinaryResource(MimeType type,
java.lang.String bodyStream,
Cachable cacheInfo)
Constructor for BinaryResource |
Method Summary | |
boolean |
allowCompression()
Checks if the Resource can be packed. |
byte[] |
getBody()
Returns the resource data |
MimeType |
getType()
Gets the Type |
java.lang.String |
toString()
|
Methods inherited from class com.cc.framework.resource.Resource |
isCacheOnDisk, isUpToDate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private MimeType type
private byte[] body
Constructor Detail |
public BinaryResource(MimeType type, byte[] body, Cachable cacheInfo)
type
- MimeTypebody
- Resource DatacacheInfo
- Cachablepublic BinaryResource(MimeType type, java.lang.String bodyStream, Cachable cacheInfo)
type
- MimeTypebodyStream
- Resource DatacacheInfo
- CachableMethod Detail |
public byte[] getBody()
public MimeType getType()
public boolean allowCompression()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |