Class JavaBeanLoader<T>


  • public class JavaBeanLoader<T>
    extends java.lang.Object
    Deprecated.
    use Yaml.loadAs() methods instead
    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.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      T load​(java.io.InputStream io)
      Deprecated.
      Parse the first YAML document in a stream and produce the corresponding JavaBean.
      T load​(java.io.Reader io)
      Deprecated.
      Parse the first YAML document in a stream and produce the corresponding Java object.
      T load​(java.lang.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

      • JavaBeanLoader

        public JavaBeanLoader​(TypeDescription typeDescription)
        Deprecated.
      • JavaBeanLoader

        public JavaBeanLoader​(java.lang.Class<S> clazz,
                              BeanAccess beanAccess)
        Deprecated.
      • JavaBeanLoader

        public JavaBeanLoader​(java.lang.Class<S> clazz)
        Deprecated.
    • Method Detail

      • load

        public T load​(java.lang.String yaml)
        Deprecated.
        Parse the first YAML document in a stream and produce the corresponding JavaBean.
        Parameters:
        yaml - YAML document
        Returns:
        parsed JavaBean
      • load

        public T load​(java.io.InputStream io)
        Deprecated.
        Parse the first YAML document in a stream and produce the corresponding JavaBean.
        Parameters:
        io - data to load from (BOM is respected and removed)
        Returns:
        parsed JavaBean
      • load

        public T load​(java.io.Reader io)
        Deprecated.
        Parse the first YAML document in a stream and produce the corresponding Java object.
        Parameters:
        io - data to load from (BOM must not be present)
        Returns:
        parsed JavaBean