|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.extensions.surf.resource.ResourceContentImpl
public class ResourceContentImpl
Binary resource content implementation
| Field Summary | |
|---|---|
protected byte[] |
bytes
|
protected String |
id
|
static org.apache.commons.logging.Log |
logger
|
protected Resource |
resource
|
protected long |
timestamp
|
protected String |
url
|
| Constructor Summary | |
|---|---|
ResourceContentImpl(Resource resource,
String url)
|
|
| Method Summary | |
|---|---|
byte[] |
getBytes()
Gets the bytes. |
InputStream |
getInputStream()
Retrieves an input stream to the resource content |
Reader |
getReader()
Gets the reader for the resource content |
Resource |
getResource()
A link back to the resource of which this content is a part |
long |
getTimestamp()
Returns the timestamp when this content convenience instance was created |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.commons.logging.Log logger
protected String id
protected Resource resource
protected long timestamp
protected String url
protected byte[] bytes
| Constructor Detail |
|---|
public ResourceContentImpl(Resource resource,
String url)
| Method Detail |
|---|
public Resource getResource()
ResourceContent
getResource in interface ResourceContentpublic long getTimestamp()
ResourceContent
getTimestamp in interface ResourceContent
public byte[] getBytes()
throws IOException
ResourceContent
getBytes in interface ResourceContentIOException
public Reader getReader()
throws IOException
ResourceContent
getReader in interface ResourceContentIOException - Signals that an I/O exception has occurred.
public InputStream getInputStream()
throws IOException
ResourceContent
getInputStream in interface ResourceContentIOException - Signals that an I/O exception has occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||