/* * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.xml.txw2.output; import com.sun.xml.txw2.TypedXmlWriter; import com.sun.xml.txw2.TXW; /** * Dummpy implementation to pass through {@link TypedXmlWriter} * to {@link TXW} * * @author Kohsuke Kawaguchi */ public final class TXWSerializer implements XmlSerializer { public final TypedXmlWriter txw; public TXWSerializer(TypedXmlWriter txw) { this.txw = txw; } public void startDocument() { throw new UnsupportedOperationException(); } public void endDocument() { throw new UnsupportedOperationException(); } public void beginStartTag(String uri, String localName, String prefix) { throw new UnsupportedOperationException(); } public void writeAttribute(String uri, String localName, String prefix, StringBuilder value) { throw new UnsupportedOperationException(); } public void writeXmlns(String prefix, String uri) { throw new UnsupportedOperationException(); } public void endStartTag(String uri, String localName, String prefix) { throw new UnsupportedOperationException(); } public void endTag() { throw new UnsupportedOperationException(); } public void text(StringBuilder text) { throw new UnsupportedOperationException(); } public void cdata(StringBuilder text) { throw new UnsupportedOperationException(); } public void comment(StringBuilder comment) { throw new UnsupportedOperationException(); } public void flush() { throw new UnsupportedOperationException(); } }