org.jnetpcap.util.config
Class JConfig.FilesystemSearch

java.lang.Object
  extended by org.jnetpcap.util.config.JConfig.FilesystemSearch
All Implemented Interfaces:
JConfig.SearchPath
Enclosing class:
JConfig

protected static class JConfig.FilesystemSearch
extends java.lang.Object
implements JConfig.SearchPath

The Class FilesystemSearch.


Constructor Summary
JConfig.FilesystemSearch(ConfigString filename)
          Instantiates a new filesystem search.
 
Method Summary
 java.io.File getDir(java.lang.String name)
          Gets the dir.
 java.io.File getFile(java.lang.String name)
          Gets the file.
 java.io.InputStream getInputStream(java.lang.String name)
          Gets the input stream.
 java.net.URL getURL(java.lang.String name)
          Gets the uRL.
 java.lang.String toString()
          To string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JConfig.FilesystemSearch

public JConfig.FilesystemSearch(ConfigString filename)
Instantiates a new filesystem search.

Parameters:
filename - the filename
Method Detail

getFile

public java.io.File getFile(java.lang.String name)
                     throws java.io.IOException
Gets the file.

Specified by:
getFile in interface JConfig.SearchPath
Parameters:
name - the name
Returns:
the file
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
See Also:
JConfig.SearchPath.getFile(java.lang.String)

getInputStream

public java.io.InputStream getInputStream(java.lang.String name)
                                   throws java.io.IOException
Gets the input stream.

Specified by:
getInputStream in interface JConfig.SearchPath
Parameters:
name - the name
Returns:
the input stream
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
See Also:
JConfig.SearchPath.getInputStream(java.lang.String)

getURL

public java.net.URL getURL(java.lang.String name)
                    throws java.io.IOException
Gets the uRL.

Specified by:
getURL in interface JConfig.SearchPath
Parameters:
name - the name
Returns:
the uRL
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
See Also:
JConfig.SearchPath.getURL(java.lang.String)

toString

public java.lang.String toString()
To string.

Overrides:
toString in class java.lang.Object
Returns:
the string
See Also:
Object.toString()

getDir

public java.io.File getDir(java.lang.String name)
Gets the dir.

Specified by:
getDir in interface JConfig.SearchPath
Parameters:
name - the name
Returns:
the dir
See Also:
JConfig.SearchPath.getDir(java.lang.String)