Class AbstractBinaryHandlerInetAddress<A extends InetAddress>
- java.lang.Object
-
- org.eclipse.serializer.persistence.types.PersistenceTypeHandler.Abstract<Binary,T>
-
- org.eclipse.serializer.persistence.binary.types.BinaryTypeHandler.Abstract<T>
-
- org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustom<T>
-
- org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustomValue<T,S>
-
- org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustomValueVariableLength<A,String>
-
- org.eclipse.serializer.persistence.binary.java.net.AbstractBinaryHandlerInetAddress<A>
-
- All Implemented Interfaces:
BinaryTypeHandler<A>
,ValidatingBinaryHandler<A,String>
,PersistenceDataTypeHolder<Binary>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,A>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
- Direct Known Subclasses:
BinaryHandlerInet4Address
,BinaryHandlerInet6Address
,BinaryHandlerInetAddress
public abstract class AbstractBinaryHandlerInetAddress<A extends InetAddress> extends AbstractBinaryHandlerCustomValueVariableLength<A,String>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.binary.types.BinaryTypeHandler
BinaryTypeHandler.Abstract<T>
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceDataTypeHolder
PersistenceDataTypeHolder.Default<D extends Object>
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeDefinition
PersistenceTypeDefinition.Default
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<D extends Object,T extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description A
create(Binary data, PersistenceLoadHandler handler)
protected abstract A
createInstance(String hostNamePart, String addressPart)
String
getValidationStateFromBinary(Binary data)
String
getValidationStateFromInstance(InetAddress instance)
static byte[]
parseIpAddress(String ipAddress)
static byte[]
parseIpV4Address(String ipV4Address)
static byte[]
parseIpV6Address(String ipV6Address)
Based on https://en.wikipedia.org/wiki/IPv6.void
store(Binary data, A instance, long objectId, PersistenceStoreHandler<Binary> handler)
-
Methods inherited from class org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustomValueVariableLength
hasPersistedVariableLength, hasVaryingPersistedLengthInstances
-
Methods inherited from class org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustomValue
hasPersistedReferences, initializeState, iterateLoadableReferences, updateState
-
Methods inherited from class org.eclipse.serializer.persistence.binary.types.AbstractBinaryHandlerCustom
allMembers, bytes, calculcateBinaryLengths, chars, complete, Complex, CustomField, CustomField, CustomFields, defineValueType, ensureInitializeInstanceMembers, getInstanceFieldOfType, initializeInstanceMembers, instanceMembers, isPrimitiveType, iterateInstanceReferences, iterateMemberTypes, keyValuesFields, membersPersistedLengthMaximum, membersPersistedLengthMinimum, SimpleArrayFields, SizedArrayFields
-
Methods inherited from class org.eclipse.serializer.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredField
-
Methods inherited from class org.eclipse.serializer.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, deriveTypeName, initialize, internalInitialize, toString, type, typeId, typeName, validateAndImmure, validateInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.serializer.persistence.binary.types.BinaryTypeHandler
dataType
-
Methods inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
-
Methods inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
-
Methods inherited from interface org.eclipse.serializer.persistence.types.PersistenceTypeHandler
collectEnumConstants, getPersistedEnumOrdinal, guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, isValidEntityType, membersInDeclaredOrder, settingMembers, storingMembers, type, validateEntityType
-
Methods inherited from interface org.eclipse.serializer.persistence.binary.types.ValidatingBinaryHandler
throwInconsistentStateException, validateState, validateStates
-
-
-
-
Method Detail
-
parseIpAddress
public static byte[] parseIpAddress(String ipAddress)
-
parseIpV4Address
public static byte[] parseIpV4Address(String ipV4Address)
-
parseIpV6Address
public static byte[] parseIpV6Address(String ipV6Address)
Based on https://en.wikipedia.org/wiki/IPv6.- Parameters:
ipV6Address
- the address to parse- Returns:
- the parts of the ip address
-
store
public final void store(Binary data, A instance, long objectId, PersistenceStoreHandler<Binary> handler)
- Specified by:
store
in interfacePersistenceTypeHandler<Binary,A extends InetAddress>
- Specified by:
store
in classAbstractBinaryHandlerCustom<A extends InetAddress>
-
create
public A create(Binary data, PersistenceLoadHandler handler)
- Specified by:
create
in interfacePersistenceTypeHandler<Binary,A extends InetAddress>
- Specified by:
create
in classAbstractBinaryHandlerCustom<A extends InetAddress>
-
getValidationStateFromInstance
public String getValidationStateFromInstance(InetAddress instance)
-
-