Skip to Main Content
Java and XSLT
book

Java and XSLT

by Eric M. Burke
September 2001
Intermediate to advanced content levelIntermediate to advanced
528 pages
13h 46m
English
O'Reilly Media, Inc.
Content preview from Java and XSLT

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( ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XSLT

Learning XSLT

Michael Fitzgerald
XSLT

XSLT

Doug Tidwell
XSLT and XPATH: A Guide to XML Transformations

XSLT and XPATH: A Guide to XML Transformations

John Robert Gardner, Zarella L. Rendon
Java EE 7 Development with WildFly

Java EE 7 Development with WildFly

Michal Cmil, Michal Matloka, Francesco Marchioni

Publisher Resources

ISBN: 0596001436Supplemental ContentCatalog PageErrata