|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yaml.snakeyaml.JavaBeanParser
public class JavaBeanParser
Convenience utility to parse JavaBeans. The returned instance is enforced to be of the same class as the provided argument. All the methods are Thread safe. When the YAML document contains a global tag with the class definition like '!!com.package.MyBean' it is ignored in favour of the runtime class.
Method Summary | ||
---|---|---|
static
|
load(InputStream io,
Class<T> javabean)
Deprecated. Parse the first YAML document in a stream and produce the corresponding JavaBean. |
|
static
|
load(Reader io,
Class<T> javabean)
Deprecated. Parse the first YAML document in a stream and produce the corresponding Java object. |
|
static
|
load(String yaml,
Class<T> javabean)
Deprecated. Parse the first YAML document in a stream and produce the corresponding JavaBean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T load(String yaml, Class<T> javabean)
yaml
- YAML documentjavabean
- JavaBean class to be parsed
public static <T> T load(InputStream io, Class<T> javabean)
io
- data to load from (BOM is respected and removed)javabean
- JavaBean class to be parsed
public static <T> T load(Reader io, Class<T> javabean)
io
- data to load from (BOM must not be present)javabean
- JavaBean class to be parsed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |