jcifs
Class Config
java.lang.Object
|
+--jcifs.Config
- public class Config
- extends java.lang.Object
This class mananges configuration information specific to the jCIFS library. There are several ways to set jCIFS properties. See the overview page of the API documentation for details.
Method Summary |
static java.lang.Object |
get(java.lang.String key)
|
static boolean |
getBoolean(java.lang.String key,
boolean def)
|
static java.net.InetAddress |
getInetAddress(java.lang.String key,
java.net.InetAddress def)
|
static int |
getInt(java.lang.String key)
|
static int |
getInt(java.lang.String key,
int def)
|
static java.lang.String |
getProperty(java.lang.String key)
|
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
|
static void |
list(java.io.PrintStream out)
|
static void |
load(java.io.InputStream in)
|
static void |
registerSmbURLHandler()
This static method registers the SMB URL protocol handler which is required to use SMB URLs with the java.net.URL class. |
static java.lang.String |
setProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Config
public Config()
registerSmbURLHandler
public static void registerSmbURLHandler()
- This static method registers the SMB URL protocol handler which is required to use SMB URLs with the java.net.URL class. If this method is not called before attempting to create an SMB URL with the URL class the following exception will occur:
Exception MalformedURLException: unknown protocol: smb
at java.net.URL.(URL.java:480)
at java.net.URL.(URL.java:376)
at java.net.URL.(URL.java:330)
at jcifs.smb.SmbFile.(SmbFile.java:355)
...
load
public static void load(java.io.InputStream in)
throws java.io.IOException
list
public static void list(java.io.PrintStream out)
throws java.io.IOException
setProperty
public static java.lang.String setProperty(java.lang.String key,
java.lang.String value)
get
public static java.lang.Object get(java.lang.String key)
getProperty
public static java.lang.String getProperty(java.lang.String key,
java.lang.String def)
getProperty
public static java.lang.String getProperty(java.lang.String key)
getInt
public static int getInt(java.lang.String key,
int def)
getInt
public static int getInt(java.lang.String key)
getInetAddress
public static java.net.InetAddress getInetAddress(java.lang.String key,
java.net.InetAddress def)
getBoolean
public static boolean getBoolean(java.lang.String key,
boolean def)