All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.txw2.output.TXWResult Maven / Gradle / Ivy

Go to download

Old JAXB Core module. Contains sources required by XJC, JXC and Runtime modules with dependencies.

The newest version!
/*
 * 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy