org.jnetpcap.util.config
Interface JConfig.SearchPath

All Known Implementing Classes:
JConfig.ClasspathSearch, JConfig.FilesystemSearch, JConfig.URLSearch
Enclosing class:
JConfig

public static interface JConfig.SearchPath

Interface used to piece together specific types of search paths. Impelementing class defines whatever mechanism, use of properties, file checks and defualt values that are deemed neccessary to produce an IO Stream.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

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.
 

Method Detail

getFile

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

Parameters:
name - the name
Returns:
the file
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getInputStream

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

Parameters:
name - the name
Returns:
the input stream
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getURL

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

Parameters:
name - the name
Returns:
the uRL
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

getDir

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

Parameters:
name - the name
Returns:
the dir