blob: 2d35915da5f7b32e44c59c49104fdd82eba1588a [file] [log] [blame]
/*
* Copyright (c) 2005, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
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();
}
}