-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
HostName
,IPAddressString
,MACAddressString
public interface HostIdentifierString extends java.io.Serializable
A string that is used to identify a network host.- Author:
- sfoley
-
-
Field Summary
Fields Modifier and Type Field Description static char
SEGMENT_VALUE_DELIMITER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Address
getAddress()
Address
toAddress()
java.lang.String
toNormalizedString()
provides a normalized String representation for the host identified by this HostIdentifierString instancejava.lang.String
toString()
Returns the original non-normalized string used to construct this HostIdentifierStringvoid
validate()
-
-
-
Field Detail
-
SEGMENT_VALUE_DELIMITER
static final char SEGMENT_VALUE_DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
toNormalizedString
java.lang.String toNormalizedString()
provides a normalized String representation for the host identified by this HostIdentifierString instance- Returns:
- the normalized string
-
validate
void validate() throws HostIdentifierException
- Throws:
HostIdentifierException
-
getAddress
Address getAddress()
-
toAddress
Address toAddress() throws java.io.IOException, HostIdentifierException
- Throws:
java.io.IOException
HostIdentifierException
-
toString
java.lang.String toString()
Returns the original non-normalized string used to construct this HostIdentifierString- Overrides:
toString
in classjava.lang.Object
- Returns:
-
-