01: /*
02: * Copyright (C) 2007, 2008 XStream Committers.
03: * All rights reserved.
04: *
05: * The software in this package is published under the terms of the BSD
06: * style license a copy of which has been included with this distribution in
07: * the LICENSE.txt file.
08: *
09: * Created on 26. September 2007 by Joerg Schaible
10: */
11: package com.thoughtworks.xstream.io.xml;
12:
13: /**
14: * An interface for a {@link com.thoughtworks.xstream.io.HierarchicalStreamWriter} supporting XML-friendly names.
15: *
16: * @author Jörg Schaible
17: * @author Mauro Talevi
18: * @since 1.3
19: */
20: public interface XmlFriendlyWriter {
21:
22: /**
23: * Escapes XML name (node or attribute) to be XML-friendly
24: *
25: * @param name the unescaped XML name
26: * @return An escaped name with original characters replaced
27: */
28: String escapeXmlName(String name);
29: }
|