|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yaml.snakeyaml.JavaBeanLoader<T>
public class JavaBeanLoader<T>
Convenience utility to parse JavaBeans. 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 T
.
http://www.artima.com/weblogs/viewpost.jsp?thread=208860
Constructor Summary | |
---|---|
JavaBeanLoader(Class<S> clazz)
Deprecated. |
|
JavaBeanLoader(Class<S> clazz,
BeanAccess beanAccess)
Deprecated. |
|
JavaBeanLoader(LoaderOptions options,
BeanAccess beanAccess)
Deprecated. |
|
JavaBeanLoader(TypeDescription typeDescription)
Deprecated. |
|
JavaBeanLoader(TypeDescription typeDescription,
BeanAccess beanAccess)
Deprecated. |
Method Summary | |
---|---|
T |
load(InputStream io)
Deprecated. Parse the first YAML document in a stream and produce the corresponding JavaBean. |
T |
load(Reader io)
Deprecated. Parse the first YAML document in a stream and produce the corresponding Java object. |
T |
load(String yaml)
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 |
Constructor Detail |
---|
public JavaBeanLoader(TypeDescription typeDescription)
public JavaBeanLoader(TypeDescription typeDescription, BeanAccess beanAccess)
public JavaBeanLoader(LoaderOptions options, BeanAccess beanAccess)
public JavaBeanLoader(Class<S> clazz, BeanAccess beanAccess)
public JavaBeanLoader(Class<S> clazz)
Method Detail |
---|
public T load(String yaml)
yaml
- YAML document
public T load(InputStream io)
io
- data to load from (BOM is respected and removed)
public T load(Reader io)
io
- data to load from (BOM must not be present)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |