public class Bytes
extends java.lang.Object
b : bytes k : kilobytes kb : kilobytes m : megabytes mb : megabytes g : gigabytes
Modifier and Type | Field and Description |
---|---|
static long |
BYTE |
static long |
GIGABYTE |
static long |
INFINITE |
static long |
KILOBYTE |
static long |
MEGABYTE |
Modifier and Type | Method and Description |
---|---|
void |
addText(java.lang.String text)
Sets the text.
|
long |
getBytes()
Replace with the real bytes.
|
static long |
toBytes(java.lang.String bytes)
Converts a byte string to a number of bytes.
|
public static final long BYTE
public static final long KILOBYTE
public static final long MEGABYTE
public static final long GIGABYTE
public static final long INFINITE
public void addText(java.lang.String text) throws ConfigException
ConfigException
public long getBytes()
public static long toBytes(java.lang.String bytes) throws ConfigException
b : bytes k : kilobytes kb : kilobytes m : megabytes mb : megabytes g : gigabytes
ConfigException