public final class TinyV2Factory extends Object
| Modifier and Type | Method and Description |
|---|---|
static TinyMetadata |
readMetadata(BufferedReader reader)
Peeks the metadata of a Tiny V2 mapping.
|
static void |
visit(BufferedReader reader,
TinyVisitor visitor)
Explores a Tiny V2 mapping with a visitor.
|
public static void visit(BufferedReader reader, TinyVisitor visitor) throws IOException, MappingParseException
This method will not close the reader!
reader - the reader that provides the mapping contentvisitor - the visitorIOException - if the reader throws oneMappingParseException - if a mapping parsing error is encounteredpublic static TinyMetadata readMetadata(BufferedReader reader) throws IOException, IllegalArgumentException
This method will not close the reader!
It is recommended to call visit(BufferedReader, TinyVisitor) if the mapping content is to be
visited.
reader - the reader that provides the mapping contentIOException - if the reader throws oneIllegalArgumentException - if a mapping format error is encountered