java.lang.Object
org.codelibs.jcifs.smb.netbios.Name
- All Implemented Interfaces:
NetbiosName
NetBIOS name implementation.
This class represents NetBIOS names used in SMB networking.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionName(Configuration cfg, String name, int hexCode, String scope) Constructs a NetBIOS name with the specified parameters.Name(Configuration cfg, NetbiosName name) Constructs a Name from a NetbiosName. -
Method Summary
-
Field Details
-
name
Name -
scope
Scope id -
hexCode
public int hexCodeType
-
-
Constructor Details
-
Name
Constructs a NetBIOS name with the specified parameters.- Parameters:
cfg- the configuration to usename- the NetBIOS name (will be truncated to 15 characters if longer)hexCode- the NetBIOS name type codescope- the NetBIOS scope identifier
-
Name
Constructs a Name from a NetbiosName.- Parameters:
cfg- the configuration to usename- the NetbiosName to copy from
-
-
Method Details
-
getName
Description copied from interface:NetbiosNameReturns the NetBIOS name.- Specified by:
getNamein interfaceNetbiosName- Returns:
- the name
-
getScope
Description copied from interface:NetbiosNameReturns the NetBIOS scope identifier.- Specified by:
getScopein interfaceNetbiosName- Returns:
- scope id
-
getNameType
public int getNameType()Description copied from interface:NetbiosNameReturns the NetBIOS name type.- Specified by:
getNameTypein interfaceNetbiosName- Returns:
- the name type
-
isUnknown
public boolean isUnknown()Checks if this represents an unknown address.- Returns:
- whether this is the unknown address
-
hashCode
public int hashCode() -
equals
-
toString
-