org.mule.config
Class ConfigResource
java.lang.Object
org.mule.config.ConfigResource
public class ConfigResource
- extends Object
A ConfigResource holds the url description (or location) and the url stream. It is useful to associate the two
for error reporting when the stream cannot be read.
resourceName
protected String resourceName
ConfigResource
public ConfigResource(String resourceName)
throws IOException
- Throws:
IOException
ConfigResource
public ConfigResource(URL url)
ConfigResource
public ConfigResource(String resourceName,
InputStream inputStream)
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getUrl
public URL getUrl()
getResourceName
public String getResourceName()
isStreamOpen
public boolean isStreamOpen()
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.