01: /*
02: * Copyright (C) 2006 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 22. June 2006 by Mauro Talevi
11: */
12: package com.thoughtworks.xstream.io;
13:
14: public class ExtendedHierarchicalStreamWriterHelper {
15: public static void startNode(HierarchicalStreamWriter writer,
16: String name, Class clazz) {
17: if (writer instanceof ExtendedHierarchicalStreamWriter) {
18: ((ExtendedHierarchicalStreamWriter) writer).startNode(name,
19: clazz);
20: } else {
21: writer.startNode(name);
22: }
23: }
24: }
|