Here you can find the source of createSource(InputStream is)
Parameter | Description |
---|---|
is | InputStream of the Source. |
public static Source createSource(InputStream is)
//package com.java2s; //License from project: Open Source License import java.io.InputStream; import javax.xml.transform.Source; import javax.xml.transform.stream.StreamSource; public class Main { /**// ww w.ja v a2s .co m * Creates a Source from an InputStream. * @param is InputStream of the Source. * @return the source. */ public static Source createSource(InputStream is) { return new StreamSource(is); } /** * Creates a Source from an URI. * @param uri Uri for the source. * @return the source. */ public static Source createSource(String uri) { return new StreamSource(uri); } }