Class ClajType
java.lang.Object
com.xpdustry.claj.common.status.ClajType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdecode(byte[] data) Data will be truncated if length is greater thanMAX_SIZE.static byte[]strwill be truncated if length is greater thanMAX_SIZE.booleaninthashCode()static ClajTypestatic ClajTyperead(arc.util.io.ByteBufferInput in) static ClajTyperead(ByteBuffer in) toString()static byte[]truncate(byte[] data) Copy data if greater thanMAX_SIZE.type()inttypeSize()static booleanvalidate(byte[] data) Replaces spaces by'_'and invalid characters by'?', in place.write()voidwrite(arc.util.io.ByteBufferOutput out) voidwrite(ByteBuffer out)
-
Field Details
-
MIN_SIZE
public static final int MIN_SIZEIn bytes.- See Also:
-
MAX_SIZE
public static final int MAX_SIZEIn bytes.- See Also:
-
rawType
protected final byte[] rawType -
type
-
hash
protected final int hash
-
-
Constructor Details
-
ClajType
- See Also:
-
ClajType
public ClajType(byte[] data) - See Also:
-
ClajType
-
-
Method Details
-
type
-
typeSize
public int typeSize() -
hashCode
-
equals
-
toString
-
write
-
write
-
write
public void write(arc.util.io.ByteBufferOutput out) -
read
- See Also:
-
read
- See Also:
-
decode
-
encode
-
truncate
public static byte[] truncate(byte[] data) Copy data if greater thanMAX_SIZE. -
validate
public static boolean validate(byte[] data) Replaces spaces by'_'and invalid characters by'?', in place. -
of
-