public enum InetAddressMarshaller extends Enum<InetAddressMarshaller> implements FieldSetMarshaller<InetAddress,InetAddress>, org.wildfly.security.ParametricPrivilegedExceptionAction<InetAddress,String>
InetAddress.| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
InetAddress |
getBuilder()
Returns a builder for use with
FieldSetMarshaller.readField(ProtoStreamReader, int, Object). |
int |
getFields()
Returns the number of fields written by this marshaller.
|
InetAddress |
readField(ProtoStreamReader reader,
int index,
InetAddress address)
Reads a single field from the specified reader at the specified index.
|
InetAddress |
run(String host) |
static InetAddressMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InetAddressMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeFields(ProtoStreamWriter writer,
int startIndex,
InetAddress address)
Writes the set of fields from the specified object to the specified writer beginning at the specified index.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfsizepublic static final InetAddressMarshaller INSTANCE
public static InetAddressMarshaller[] values()
for (InetAddressMarshaller c : InetAddressMarshaller.values()) System.out.println(c);
public static InetAddressMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic InetAddress getBuilder()
FieldSetMarshallerFieldSetMarshaller.readField(ProtoStreamReader, int, Object).
May return a shared instance, if the builder type is immutable, or a new instance, if the builder is mutable.getBuilder in interface FieldSetMarshaller<InetAddress,InetAddress>public int getFields()
FieldSetMarshallergetFields in interface FieldSetMarshaller<InetAddress,InetAddress>public InetAddress readField(ProtoStreamReader reader, int index, InetAddress address) throws IOException
FieldSetMarshallerreadField in interface FieldSetMarshaller<InetAddress,InetAddress>reader - a ProtoStream readerindex - the field indexaddress - the builder to be populated with the read fieldIOException - if the field could not be readpublic void writeFields(ProtoStreamWriter writer, int startIndex, InetAddress address) throws IOException
FieldSetMarshallerwriteFields in interface FieldSetMarshaller<InetAddress,InetAddress>writer - a ProtoStream writerstartIndex - the start index for the embedded fieldsaddress - the value to be writtenIOException - if the value could not be writtenpublic InetAddress run(String host) throws UnknownHostException
run in interface org.wildfly.security.ParametricPrivilegedExceptionAction<InetAddress,String>UnknownHostExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.