Here you can find the source of getStreamSources(File[] stylesheets)
public static StreamSource[] getStreamSources(File[] stylesheets)
//package com.java2s; //License from project: Open Source License import java.io.File; import javax.xml.transform.stream.StreamSource; public class Main { public static StreamSource[] getStreamSources(File[] stylesheets) { StreamSource[] ss = new StreamSource[stylesheets.length]; for (int i = 0; i < stylesheets.length; i++) { ss[i] = new StreamSource(stylesheets[i]); }/* w ww .j a va2 s .co m*/ return ss; } }