StreamWriterDelegate.java in  » XML » stax-utils » javanet » staxutils » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » XML » stax utils » javanet.staxutils 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


        /*
         * Copyright (c) 2006, John Kristian
         * All rights reserved.
         *
         * Redistribution and use in source and binary forms, with or without
         * modification, are permitted provided that the following conditions are met:
         *
         *      *   Redistributions of source code must retain the above copyright
         *          notice, this list of conditions and the following disclaimer.
         *
         *      *   Redistributions in binary form must reproduce the above copyright
         *          notice, this list of conditions and the following disclaimer in the
         *          documentation and/or other materials provided with the distribution.
         *
         *      *   Neither the name of StAX-Utils nor the names of its contributors
         *          may be used to endorse or promote products derived from this
         *          software without specific prior written permission.
         *
         * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
         * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
         * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
         * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
         * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
         * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
         * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
         * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
         * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
         * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
         * POSSIBILITY OF SUCH DAMAGE.
         *
         */
        package javanet.staxutils;

        import javax.xml.namespace.NamespaceContext;
        import javax.xml.stream.XMLStreamException;
        import javax.xml.stream.XMLStreamWriter;

        /**
         * Abstract class for writing filtered XML streams. This class provides methods
         * that merely delegate to the contained stream. Subclasses should override some
         * of these methods, and may also provide additional methods and fields.
         *
         * @author <a href="mailto:[email protected]">John Kristian</a>
         */
        public abstract class StreamWriterDelegate implements  XMLStreamWriter {

            protected StreamWriterDelegate(XMLStreamWriter out) {
                this .out = out;
            }

            protected XMLStreamWriter out;

            public Object getProperty(String name)
                    throws IllegalArgumentException {
                return out.getProperty(name);
            }

            public NamespaceContext getNamespaceContext() {
                return out.getNamespaceContext();
            }

            public void setNamespaceContext(NamespaceContext context)
                    throws XMLStreamException {
                out.setNamespaceContext(context);
            }

            public void setDefaultNamespace(String uri)
                    throws XMLStreamException {
                out.setDefaultNamespace(uri);
            }

            public void writeStartDocument() throws XMLStreamException {
                out.writeStartDocument();
            }

            public void writeStartDocument(String version)
                    throws XMLStreamException {
                out.writeStartDocument(version);
            }

            public void writeStartDocument(String encoding, String version)
                    throws XMLStreamException {
                out.writeStartDocument(encoding, version);
            }

            public void writeDTD(String dtd) throws XMLStreamException {
                out.writeDTD(dtd);
            }

            public void writeProcessingInstruction(String target)
                    throws XMLStreamException {
                out.writeProcessingInstruction(target);
            }

            public void writeProcessingInstruction(String target, String data)
                    throws XMLStreamException {
                out.writeProcessingInstruction(target, data);
            }

            public void writeComment(String data) throws XMLStreamException {
                out.writeComment(data);
            }

            public void writeEmptyElement(String localName)
                    throws XMLStreamException {
                out.writeEmptyElement(localName);
            }

            public void writeEmptyElement(String namespaceURI, String localName)
                    throws XMLStreamException {
                out.writeEmptyElement(namespaceURI, localName);
            }

            public void writeEmptyElement(String prefix, String localName,
                    String namespaceURI) throws XMLStreamException {
                out.writeEmptyElement(prefix, localName, namespaceURI);
            }

            public void writeStartElement(String localName)
                    throws XMLStreamException {
                out.writeStartElement(localName);
            }

            public void writeStartElement(String namespaceURI, String localName)
                    throws XMLStreamException {
                out.writeStartElement(namespaceURI, localName);
            }

            public void writeStartElement(String prefix, String localName,
                    String namespaceURI) throws XMLStreamException {
                out.writeStartElement(prefix, localName, namespaceURI);
            }

            public void writeDefaultNamespace(String namespaceURI)
                    throws XMLStreamException {
                out.writeDefaultNamespace(namespaceURI);
            }

            public void writeNamespace(String prefix, String namespaceURI)
                    throws XMLStreamException {
                out.writeNamespace(prefix, namespaceURI);
            }

            public String getPrefix(String uri) throws XMLStreamException {
                return out.getPrefix(uri);
            }

            public void setPrefix(String prefix, String uri)
                    throws XMLStreamException {
                out.setPrefix(prefix, uri);
            }

            public void writeAttribute(String localName, String value)
                    throws XMLStreamException {
                out.writeAttribute(localName, value);
            }

            public void writeAttribute(String namespaceURI, String localName,
                    String value) throws XMLStreamException {
                out.writeAttribute(namespaceURI, localName, value);
            }

            public void writeAttribute(String prefix, String namespaceURI,
                    String localName, String value) throws XMLStreamException {
                out.writeAttribute(prefix, namespaceURI, localName, value);
            }

            public void writeCharacters(String text) throws XMLStreamException {
                out.writeCharacters(text);
            }

            public void writeCharacters(char[] text, int start, int len)
                    throws XMLStreamException {
                out.writeCharacters(text, start, len);
            }

            public void writeCData(String data) throws XMLStreamException {
                out.writeCData(data);
            }

            public void writeEntityRef(String name) throws XMLStreamException {
                out.writeEntityRef(name);
            }

            public void writeEndElement() throws XMLStreamException {
                out.writeEndElement();
            }

            public void writeEndDocument() throws XMLStreamException {
                out.writeEndDocument();
            }

            public void flush() throws XMLStreamException {
                out.flush();
            }

            public void close() throws XMLStreamException {
                out.close();
            }

        }
w__ww___.__j_av__a__2__s.__c___o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.