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
Resource
stringify
in interface Resource
ReferenceEncodingException
public <R> R processWith(ResourceProcessor<R> processor) throws ResourceProcessingError
Resource
ResourceProcessor
. 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 Resource
ResourceProcessingError
public InputStream asStream(ActualEnvironment environment) throws ActualEnvironmentException
asStream
in interface Resource
ActualEnvironmentException
Copyright © 2005–2017 Alfresco Software. All rights reserved.