ReadOnlyXStream.java :  » XML » xstream-1.3 » com » thoughtworks » xstream » Java Open Source

Java Open Source » XML » xstream 1.3 
xstream 1.3 » com » thoughtworks » xstream » ReadOnlyXStream.java
/*
 * Copyright (C) 2007 XStream Committers.
 * All rights reserved.
 *
 * The software in this package is published under the terms of the BSD
 * style license a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 * 
 * Created on 14. May 2007 by Guilherme Silveira
 */
package com.thoughtworks.xstream;

/**
 * @author Guilherme Silveira
 * @since upcoming 
 */
public class ReadOnlyXStream {

    private final XStream xstream;

    public ReadOnlyXStream(XStream xstream) {
        this.xstream = xstream;
    }

    public Object fromXML(String xml) {
        return xstream.fromXML(xml);
    }

    public String toXML(Object obj) {
        return xstream.toXML(obj);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.