com.sun.xml.txw2.output.TXWResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jaxb-core Show documentation
Show all versions of jaxb-core Show documentation
Old JAXB Core module. Contains sources required by XJC, JXC and Runtime modules with dependencies.
/*
* 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 javax.xml.transform.Result;
/**
* Allow you to wrap {@link TypedXmlWriter} into a {@link Result}
* so that it can be passed to {@link ResultFactory}.
*
*
* This class doesn't extend from known {@link Result} type,
* so it won't work elsewhere.
*
* @author Kohsuke Kawaguchi
*/
public class TXWResult implements Result {
private String systemId;
private TypedXmlWriter writer;
public TXWResult(TypedXmlWriter writer) {
this.writer = writer;
}
public TypedXmlWriter getWriter() {
return writer;
}
public void setWriter(TypedXmlWriter writer) {
this.writer = writer;
}
@Override
public String getSystemId() {
return systemId;
}
@Override
public void setSystemId(String systemId) {
this.systemId = systemId;
}
}