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-impl Show documentation
Show all versions of jaxb-impl Show documentation
Old JAXB Runtime module. Contains sources required for runtime processing.
/*
* 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;
}
public String getSystemId() {
return systemId;
}
public void setSystemId(String systemId) {
this.systemId = systemId;
}
}