Package com.thoughtworks.xstream.persistence

Examples of com.thoughtworks.xstream.persistence.XmlArrayList.addAll()


    private final class PersistenceArrayListConverter implements Converter {
        public void marshal(Object source, HierarchicalStreamWriter writer,
            MarshallingContext context) {
            final XmlArrayList list = new XmlArrayList(new FilePersistenceStrategy(dir, xstream));
            context.convertAnother(dir);
            list.addAll((Collection)source);
        }

        public Object unmarshal(HierarchicalStreamReader reader,
            UnmarshallingContext context) {
            final File directory = (File)context.convertAnother(null, File.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.