public static < T > List < T > unmarshalCollection ( Class < T > cl , InputStream s ) throws JAXBException { return unmarshalCollection ( cl , new StreamSource ( s ) ) ; }
Converts the contents of the InputStream to a List with objects of the given class .