java.lang.Object
javax.xml.transform.stream.StreamSource
- All Implemented Interfaces:
- Source
- See Also:
- Top Examples, Source Code,
InputStream
, Reader
public static final String FEATURE
- See Also:
TransformerFactory.getFeature(java.lang.String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public InputStream getInputStream()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getPublicId()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Reader getReader()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getSystemId()
- See Also:
- Source
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setInputStream(InputStream inputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setPublicId(String publicId)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setReader(Reader reader)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSystemId(File f)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSystemId(String systemId)
- See Also:
- Source
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource()
- See Also:
Transformer.transform(Source xmlSource, Result outputTarget)
, new InputStream()
, setReader(java.io.Reader reader)
, setInputStream(java.io.InputStream inputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource(File f)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource(InputStream inputStream)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource(InputStream inputStream,
String systemId)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource(Reader reader)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1611]Transform a XML file using a XSLT
By Anonymous on 2005/11/04 20:23:08 Rate
String source = ... //some contents of source xml file
String transform = .. //some contents for stylesheet XSLT file
Writer out = new StringWriter ( ) ;
TransformerFactory factory = TransformerFactory.newInstance ( ) ;
Transformer transformer = factory.newTransformer ( new StreamSource ( new StringReader ( transform ) ) ) ;
transformer.transform ( new StreamSource ( new StringReader ( source ) ) ,new StreamResult ( out ) ) ;
result = out.toString ( ) ;
public StreamSource(Reader reader,
String systemId)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public StreamSource(String systemId)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples