public class Code extends Object
Everything is case-SENSITIVE. Here's the breakdown.
| Constructor and Description |
|---|
Code () |
| Modifier and Type | Method and Description |
|---|---|
static DecodeReturn |
checkPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, then trims the line and checks the preamble.
|
static void |
decode (DecodeReturn d)
Decodes the next item out of a DecodeReturn and modifies the DecodeReturn to hold the results.
|
static String |
encode (boolean b)
Encodes a boolean.
|
static String |
encode (byte b)
Encodes a byte.
|
static String |
encode (char c)
Encodes a character.
|
static String |
encode (double d)
Encodes a double.
|
static String |
encode (float f)
Encodes a float.
|
static String |
encode (int i)
Encodes an int.
|
static String |
encode (long l)
Encodes a long.
|
static String |
encode (short s)
Encodes a short.
|
static String |
encode (String s)
Encodes a String.
|
static boolean |
readBooleanWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a boolean value ("true" or "false") if there is one, and returns it.
|
static byte |
readByteWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a byte if there is one, and returns it.
|
static char |
readCharacterWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a character if there is one, and returns it.
|
static double |
readDoubleWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a double if there is one, and returns it.
|
static float |
readFloatWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a float if there is one, and returns it.
|
static int |
readIntegerWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in an integer if there is one, and returns it.
|
static long |
readLongWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a long if there is one, and returns it.
|
static short |
readShortWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a short if there is one, and returns it.
|
static String |
readStringWithPreamble (String preamble,
EvolutionState state,
LineNumberReader reader)
Finds the next nonblank line, skips past an expected preamble, and reads in a string if there is one, and returns it.
|
public Code()
public static String encode(boolean b)
public static String encode(byte b)
public static String encode(char c)
public static String encode(short s)
public static String encode(int i)
public static String encode(long l)
public static String encode(float f)
public static String encode(double d)
public static void decode(DecodeReturn d)
public static DecodeReturn checkPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static String readStringWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static char readCharacterWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static byte readByteWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static short readShortWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static long readLongWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static int readIntegerWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static float readFloatWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static double readDoubleWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
public static boolean readBooleanWithPreamble(String preamble, EvolutionState state, LineNumberReader reader)
Copyright © 2019. All rights reserved.