Package adams.core.net
Class SMBHelper
- java.lang.Object
-
- adams.core.net.SMBHelper
-
public class SMBHelper extends Object
A helper class for SMB.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME
the name of the props file.protected static Properties
m_Properties
the properties.static String
WINS_HOST
The wins host.
-
Constructor Summary
Constructors Constructor Description SMBHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Properties
getProperties()
Returns the underlying properties.static String
getWinsHost()
Returns the hostname verifier.static void
initialize()
Initializes the Wins host.static boolean
writeProperties()
Writes the specified properties to disk.static boolean
writeProperties(Properties props)
Writes the specified properties to disk.
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the name of the props file.- See Also:
- Constant Field Values
-
WINS_HOST
public static final String WINS_HOST
The wins host.- See Also:
- Constant Field Values
-
m_Properties
protected static Properties m_Properties
the properties.
-
-
Method Detail
-
getProperties
public static Properties getProperties()
Returns the underlying properties.- Returns:
- the properties
-
writeProperties
public static boolean writeProperties()
Writes the specified properties to disk.- Returns:
- true if successfully stored
-
writeProperties
public static boolean writeProperties(Properties props)
Writes the specified properties to disk.- Parameters:
props
- the properties to write to disk- Returns:
- true if successfully stored
-
getWinsHost
public static String getWinsHost()
Returns the hostname verifier.- Returns:
- the verifier
-
initialize
public static void initialize()
Initializes the Wins host.
-
-