public class ResourceContentImpl extends Object implements ResourceContent
| Modifier and Type | Field and Description |
|---|---|
protected FrameworkBean |
frameworkUtil |
protected Resource |
resource |
protected String |
url |
| Constructor and Description |
|---|
ResourceContentImpl(Resource resource,
String url,
FrameworkBean frameworkUtil)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getStringContent()
Returns the String content for the resource.
|
protected final Resource resource
protected final String url
protected FrameworkBean frameworkUtil
public ResourceContentImpl(Resource resource, String url, FrameworkBean frameworkUtil)
resource - Resourceurl - StringframeworkUtil - FrameworkBeanpublic Resource getResource()
ResourceContentgetResource in interface ResourceContentpublic Reader getReader() throws IOException
ResourceContentgetReader in interface ResourceContentIOException - Signals that an I/O exception has occurred.public InputStream getInputStream() throws IOException
ResourceContentgetInputStream in interface ResourceContentIOException - Signals that an I/O exception has occurred.public String getStringContent() throws IOException
ResourceContentgetStringContent in interface ResourceContentIOException - Signals that an I/O exception has occurred.public byte[] getBytes()
throws IOException
ResourceContentgetBytes in interface ResourceContentIOExceptionCopyright © 2005–2016 Alfresco Software. All rights reserved.