Package com.codetaco.cli.misc
Class ByteUtil
- java.lang.Object
-
- com.codetaco.cli.misc.ByteUtil
-
public final class ByteUtil extends Object
The type Byte util.
-
-
Constructor Summary
Constructors Constructor Description ByteUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringBuilder
append(StringBuilder sb)
Append string builder.static String
asLiteral(byte aByte)
As literal string.static byte
byteForLiteral(String literal)
Byte for literal byte.static String
byteToLit(String number)
Byte to lit string.
-
-
-
Method Detail
-
asLiteral
public static String asLiteral(byte aByte)
As literal string.- Parameters:
aByte
- the a byte- Returns:
- the string
-
byteForLiteral
public static byte byteForLiteral(String literal)
Byte for literal byte.- Parameters:
literal
- the literal- Returns:
- the byte
-
byteToLit
public static String byteToLit(String number)
Byte to lit string.- Parameters:
number
- the number- Returns:
- the string
-
append
public static StringBuilder append(StringBuilder sb)
Append string builder.- Parameters:
sb
- the sb- Returns:
- the string builder
-
-