public abstract class DnsLabel
extends java.lang.Object
implements java.lang.CharSequence
| Modifier and Type | Class and Description |
|---|---|
static class |
DnsLabel.LabelToLongException |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
label |
static int |
MAX_LABEL_LENGTH_IN_OCTETS
The maximum length of a DNS label in octets.
|
static boolean |
VALIDATE
Whether or not the DNS label is validated on construction.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DnsLabel(java.lang.String label) |
| Modifier and Type | Method and Description |
|---|---|
DnsLabel |
asLowercaseVariant() |
char |
charAt(int index) |
boolean |
equals(java.lang.Object other) |
static DnsLabel |
from(java.lang.String label) |
static DnsLabel[] |
from(java.lang.String[] labels) |
java.lang.String |
getInternationalizedRepresentation() |
protected java.lang.String |
getInternationalizedRepresentationInternal() |
java.lang.String |
getLabelType() |
int |
hashCode() |
static boolean |
isIdnAcePrefixed(java.lang.String string) |
int |
length() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
void |
writeToBoas(java.io.ByteArrayOutputStream byteArrayOutputStream) |
public static final int MAX_LABEL_LENGTH_IN_OCTETS
public static boolean VALIDATE
public final java.lang.String label
public final java.lang.String getInternationalizedRepresentation()
protected java.lang.String getInternationalizedRepresentationInternal()
public final java.lang.String getLabelType()
public final int length()
length in interface java.lang.CharSequencepublic final char charAt(int index)
charAt in interface java.lang.CharSequencepublic final java.lang.CharSequence subSequence(int start,
int end)
subSequence in interface java.lang.CharSequencepublic final java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Objectpublic final boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic final int hashCode()
hashCode in class java.lang.Objectpublic final DnsLabel asLowercaseVariant()
public final void writeToBoas(java.io.ByteArrayOutputStream byteArrayOutputStream)
public static DnsLabel from(java.lang.String label)
public static DnsLabel[] from(java.lang.String[] labels)
public static boolean isIdnAcePrefixed(java.lang.String string)