public class MibSource
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
|
MibSource(java.io.File file)
Creates a new MIB input source.
|
protected |
MibSource(java.io.Reader input)
Creates a new MIB input source.
|
|
MibSource(java.lang.String path,
java.net.URL url)
Creates a new MIB input source.
|
|
MibSource(java.net.URL url)
Creates a new MIB input source.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Checks if this object is equal to another.
|
java.io.File |
getFile()
Returns the MIB file if set.
|
java.io.Reader |
getReader()
Returns a stream reader for the MIB file.
|
java.net.URL |
getURL()
Returns the MIB URL if set.
|
int |
hashCode()
Returns the hash code value for the object.
|
public MibSource(java.io.File file)
file
- the file to read frompublic MibSource(java.net.URL url)
url
- the URL to read frompublic MibSource(java.lang.String path, java.net.URL url)
path
- the resource path (i.e. error location)url
- the URL to read fromprotected MibSource(java.io.Reader input)
input
- the input stream to read frompublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to compare withpublic int hashCode()
hashCode
in class java.lang.Object
public java.io.File getFile()
public java.net.URL getURL()
public java.io.Reader getReader() throws java.io.IOException
java.io.IOException
- if the MIB file couldn't be opened