Class ExtWrapIntEncodingUniform
java.lang.Object
org.javarosa.core.util.externalizable.ExternalizableWrapper
org.javarosa.core.util.externalizable.ExtWrapIntEncoding
org.javarosa.core.util.externalizable.ExtWrapIntEncodingUniform
- All Implemented Interfaces:
Externalizable
public class ExtWrapIntEncodingUniform extends ExtWrapIntEncoding
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ExtWrapIntEncodingUniform()ExtWrapIntEncodingUniform(long l) -
Method Summary
Modifier and Type Method Description ExternalizableWrapperclone(Object val)voidmetaReadExternal(DataInputStream in, PrototypeFactory pf)voidmetaWriteExternal(DataOutputStream out)voidreadExternal(DataInputStream in, PrototypeFactory pf)voidwriteExternal(DataOutputStream out)serialize a numeric value, only using as many bytes as needed.Methods inherited from class org.javarosa.core.util.externalizable.ExternalizableWrapper
baseValue, isEmpty
-
Constructor Details
-
ExtWrapIntEncodingUniform
public ExtWrapIntEncodingUniform(long l) -
ExtWrapIntEncodingUniform
public ExtWrapIntEncodingUniform()
-
-
Method Details
-
clone
- Specified by:
clonein classExternalizableWrapper
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Specified by:
readExternalin classExternalizableWrapper- Throws:
IOException
-
writeExternal
serialize a numeric value, only using as many bytes as needed. splits up the value into chunks of 7 bits, using as many chunks as needed to unambiguously represent the value. each chunk is serialized as a single byte, where the most-significant bit is set to 1 to indicate there are more bytes to follow, or 0 to indicate the last byte- Specified by:
writeExternalin interfaceExternalizable- Specified by:
writeExternalin classExternalizableWrapper- Throws:
IOException
-
metaReadExternal
- Specified by:
metaReadExternalin classExternalizableWrapper
-
metaWriteExternal
- Specified by:
metaWriteExternalin classExternalizableWrapper
-