Class Domain
java.lang.Object
io.mola.galimatias.Host
io.mola.galimatias.Domain
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final longprivate final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()labels()static DomainparseDomain(URLParsingSettings settings, String input, boolean unicode) static DomainparseDomain(String input) static DomainparseDomain(String input, boolean unicode) private static String[]splitWorker(String str, String separatorChars, int max, boolean preserveAllTokens) Imported from https://github.com/apache/commons-lang/blob/690dc3c9c4cf8a1875d882ae09741c2e6342ad6b/src/main/java/org/apache/commons/lang3/StringUtils.java Performs the logic for thesplitandsplitPreserveAllTokensmethods that return a maximum array length.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
domain
-
unicode
private final boolean unicode
-
-
Constructor Details
-
Domain
-
-
Method Details
-
parseDomain
- Throws:
GalimatiasParseException
-
labels
-
parseDomain
- Throws:
GalimatiasParseException
-
parseDomain
public static Domain parseDomain(URLParsingSettings settings, String input, boolean unicode) throws GalimatiasParseException - Throws:
GalimatiasParseException
-
toString
-
toHumanString
- Specified by:
toHumanStringin classHost
-
equals
-
hashCode
-
splitWorker
private static String[] splitWorker(String str, String separatorChars, int max, boolean preserveAllTokens) Imported from https://github.com/apache/commons-lang/blob/690dc3c9c4cf8a1875d882ae09741c2e6342ad6b/src/main/java/org/apache/commons/lang3/StringUtils.java Performs the logic for thesplitandsplitPreserveAllTokensmethods that return a maximum array length.- Parameters:
str- the String to parse, may benullseparatorChars- the separate charactermax- the maximum number of elements to include in the array. A zero or negative value implies no limit.preserveAllTokens- iftrue, adjacent separators are treated as empty token separators; iffalse, adjacent separators are treated as one separator.- Returns:
- an array of parsed Strings,
nullif null String input
-