public final class TinyMappingFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static TinyMetadata |
EMPTY_METADATA |
static TinyTree |
EMPTY_TREE |
| Modifier and Type | Method and Description |
|---|---|
static TinyTree |
load(BufferedReader reader)
Loads a tree model from a buffered reader for v2 input.
|
static TinyTree |
load(BufferedReader reader,
boolean slim)
Loads a tree model from a buffered reader for v2 input.
|
static TinyTree |
loadLegacy(BufferedReader reader)
Loads a tree model from a buffered reader for v1 input.
|
static TinyTree |
loadWithDetection(BufferedReader reader)
Loads a tree model from a buffered reader and automatically determine the input type.
|
static TinyTree |
loadWithDetection(BufferedReader reader,
boolean slim)
Loads a tree model from a buffered reader and automatically determine the input type.
|
public static final TinyTree EMPTY_TREE
public static final TinyMetadata EMPTY_METADATA
public static TinyTree load(BufferedReader reader) throws IOException, MappingParseException
reader - the buffered readerIOException - if the reader throws oneMappingParseException - if there is an issue with the v2 formatpublic static TinyTree load(BufferedReader reader, boolean slim) throws IOException, MappingParseException
reader - the buffered readerslim - whether parameters, local variables, or comments are omittedIOException - if the reader throws oneMappingParseException - if there is an issue with the v2 formatpublic static TinyTree loadWithDetection(BufferedReader reader) throws IOException, MappingParseException
reader - the buffered readerIOException - if the reader throws oneMappingParseException - if there is an issue with the v2 formatpublic static TinyTree loadWithDetection(BufferedReader reader, boolean slim) throws IOException, MappingParseException
reader - the buffered readerslim - whether parameters, local variables, or comments are omittedIOException - if the reader throws oneMappingParseException - if there is an issue with the v2 formatpublic static TinyTree loadLegacy(BufferedReader reader) throws IOException
reader - the buffered readerIOException - if the reader throws one