public class DefaultTsonElementFormat extends Object implements NElementStreamFormat
| Constructor and Description |
|---|
DefaultTsonElementFormat() |
| Modifier and Type | Method and Description |
|---|---|
TsonStreamParser |
fromReader(Reader reader,
Object source) |
NElement |
normalize(NElement e) |
NElement |
parseElement(Reader reader,
NElementFactoryContext context) |
NElement |
parseElement(String string,
NElementFactoryContext context) |
void |
printElement(NElement value,
NPrintStream out,
boolean compact,
NElementFactoryContext context) |
TsonElement |
toTson(NElement elem) |
TsonElement[] |
toTsonElemArray(List<NElement> elems) |
void |
write(NPrintStream out,
NElement data,
boolean compact) |
public NElement parseElement(String string, NElementFactoryContext context)
public void write(NPrintStream out, NElement data, boolean compact)
public NElement normalize(NElement e)
normalize in interface NElementStreamFormatpublic NElement parseElement(Reader reader, NElementFactoryContext context)
parseElement in interface NElementStreamFormatpublic TsonElement[] toTsonElemArray(List<NElement> elems)
public TsonElement toTson(NElement elem)
public void printElement(NElement value, NPrintStream out, boolean compact, NElementFactoryContext context)
printElement in interface NElementStreamFormatpublic TsonStreamParser fromReader(Reader reader, Object source)
Copyright © 2025 vpc open source initiative. All rights reserved.