@@ -0,0 +1,2305 @@
+/*%0D%0A * See LICENSE file in distribution for copyright and licensing information.%0D%0A */%0D%0Apackage org.yaml.snakeyaml;%0D%0A%0D%0Aimport java.io.InputStream;%0D%0Aimport java.io.StringReader;%0D%0A%0D%0Aimport org.yaml.snakeyaml.constructor.Constructor;%0D%0Aimport org.yaml.snakeyaml.reader.UnicodeReader;%0D%0Aimport org.yaml.snakeyaml.resolver.Resolver;%0D%0A%0D%0A/**%0D%0A * Public YAML interface. Each Thread must have its own instance.%0D%0A */%0D%0Apublic class GenericsYaml %7B%0D%0A    private String name;%0D%0A%0D%0A    private GenericsYaml() %7B%0D%0A        this.name = %22GenericsYaml:%22 + System.identityHashCode(this);%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Parse the first YAML document in a String and produce the corresponding%0D%0A     * Java object. (Because the encoding in known BOM is not respected.)%0D%0A     * %0D%0A     * @param yaml%0D%0A     *            - YAML data to load from (BOM must not be present)%0D%0A     * @return parsed object%0D%0A     */%0D%0A    @SuppressWarnings(%22unchecked%22)%0D%0A    public static %3CT%3E T load(String yaml, Class%3CT%3E clazz) %7B%0D%0A        Loader loader = createLoader(clazz);%0D%0A        return (T) loader.load(new StringReader(yaml));%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Parse the first YAML document in a stream and produce the corresponding%0D%0A     * Java object.%0D%0A     * %0D%0A     * @param io%0D%0A     *            - data to load from (BOM is respected and removed)%0D%0A     * @return parsed object%0D%0A     */%0D%0A    @SuppressWarnings(%22unchecked%22)%0D%0A    public static %3CT%3E T load(InputStream io, Class%3CT%3E clazz) %7B%0D%0A        Loader loader = createLoader(clazz);%0D%0A        return (T) loader.load(new UnicodeReader(io));%0D%0A    %7D%0D%0A%0D%0A    /**%0D%0A     * Parse the first YAML document in a stream and produce the corresponding%0D%0A     * Java object.%0D%0A     * %0D%0A     * @param io%0D%0A     *            - data to load from (BOM must not be present)%0D%0A     * @return parsed object%0D%0A     */%0D%0A    @SuppressWarnings(%22unchecked%22)%0D%0A    public static %3CT%3E T load(java.io.Reader io, Class%3CT%3E clazz) %7B%0D%0A        Loader loader = createLoader(clazz);%0D%0A        return (T) loader.load(io);%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public String toString() %7B%0D%0A        return name;%0D%0A    %7D%0D%0A%0D%0A    private static Loader createLoader(Class%3C? extends Object%3E clazz) %7B%0D%0A        Loader loader = new Loader(new Constructor(clazz));%0D%0A        Resolver resolver = new Resolver();%0D%0A        loader.setResolver(resolver);%0D%0A        return loader;%0D%0A    %7D%0D%0A%7D%0D%0A

add GenericsYaml