01: /*
02: * Copyright (C) 2004, 2005 Joe Walnes.
03: * Copyright (C) 2006, 2007 XStream Committers.
04: * All rights reserved.
05: *
06: * The software in this package is published under the terms of the BSD
07: * style license a copy of which has been included with this distribution in
08: * the LICENSE.txt file.
09: *
10: * Created on 16. March 2004 by Joe Walnes
11: */
12: package com.thoughtworks.xstream.core;
13:
14: import com.thoughtworks.xstream.converters.ConverterLookup;
15: import com.thoughtworks.xstream.io.HierarchicalStreamReader;
16: import com.thoughtworks.xstream.io.HierarchicalStreamWriter;
17: import com.thoughtworks.xstream.mapper.Mapper;
18:
19: public class TreeMarshallingStrategy extends
20: AbstractTreeMarshallingStrategy {
21:
22: protected TreeUnmarshaller createUnmarshallingContext(Object root,
23: HierarchicalStreamReader reader,
24: ConverterLookup converterLookup, Mapper mapper) {
25: return new TreeUnmarshaller(root, reader, converterLookup,
26: mapper);
27: }
28:
29: protected TreeMarshaller createMarshallingContext(
30: HierarchicalStreamWriter writer,
31: ConverterLookup converterLookup, Mapper mapper) {
32: return new TreeMarshaller(writer, converterLookup, mapper);
33: }
34: }
|