Name

Package: javax.xml.transform.stream

Synopsis

This package defines how to perform transformations using Java I/O streams.

StreamResult

This allows transformation results to be sent to a File, Writer, or OutputStream.

public class StreamResult
        implements Result {
    public static final String FEATURE =
        "http://javax.xml.transform.stream.StreamResult/feature";
    public StreamResult(OutputStream outputStream);
    public StreamResult(Writer writer);
    public StreamResult(String systemId);
    public StreamResult(File f);
    public StreamResult(  );
    public OutputStream getOutputStream(  );
    public String getSystemId(  );
    public Writer getWriter(  );
    public void setOutputStream(OutputStream outputStream);
    public void setSystemId(File f);
    public void setSystemId(String systemId);
    public void setWriter(Writer writer);
}

StreamSource

This supports input from a URL, File, Reader, or InputStream. The system id is used to resolve relative URLs in the XML and XSLT.

public class StreamSource implements Source { public static final String FEATURE = "http://javax.xml.transform.stream.StreamSource/feature"; public StreamSource(InputStream inputStream); public StreamSource(InputStream inputStream, String systemId); public StreamSource(Reader reader); public StreamSource(Reader reader, String systemId); public StreamSource(String systemId); public StreamSource(File f); public StreamSource( ); public InputStream getInputStream( ); public String getPublicId( ); public Reader getReader( ); public String getSystemId( ...

Get Java and XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.