| Constructor and Description |
|---|
ClasspathResource(String classpath) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
asStream(ActualEnvironment environment) |
boolean |
equals(Object obj) |
String |
getClasspath() |
int |
hashCode() |
<R> R |
processWith(ResourceProcessor<R> processor)
Processes the Resource with a
ResourceProcessor. |
String |
stringify(Stringifier stringifier)
Returns the String representation of the resource.
|
public ClasspathResource(String classpath)
public String getClasspath()
public String stringify(Stringifier stringifier) throws ReferenceEncodingException
Resourcestringify in interface ResourceReferenceEncodingExceptionpublic <R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
ResourceResourceProcessor. This method has
the role of the accept method in the Visitor pattern, in this case the
Visitor being the ResourceProcessor and the Element - the
Resource.processWith in interface ResourceResourceProcessingErrorpublic InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
asStream in interface ResourceActualEnvironmentExceptionCopyright © 2005–2018 Alfresco Software. All rights reserved.