- java.lang.Object
-
- swim.recon.Recon
-
public final class Recon extends Object
Factory for constructing Recon parsers and writers.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Decoder<T>
formDecoder(Form<T> form)
static <T> Encoder<T,T>
formEncoder(Form<T> form)
static <T> Parser<T>
formParser(Form<T> form)
static <T> Writer<T,T>
formWriter(Form<T> form)
static Value
parse(String recon)
static Parser<Value>
parser()
static int
sizeOf(Item item)
static int
sizeOfBlock(Item item)
static ReconParser<Item,Value>
structureParser()
static ReconWriter<Item,Value>
structureWriter()
static Data
toBlockData(Item item)
static String
toBlockString(Item item)
static Data
toData(Item item)
static String
toString(Item item)
static Writer<?,?>
write(Output<?> output, Item item)
static Writer<?,?>
writeBlock(Output<?> output, Item item)
-
-
-
Method Detail
-
structureParser
public static ReconParser<Item,Value> structureParser()
-
structureWriter
public static ReconWriter<Item,Value> structureWriter()
-
sizeOf
public static int sizeOf(Item item)
-
sizeOfBlock
public static int sizeOfBlock(Item item)
-
-