@@ -0,0 +1,877 @@
+package com.boundary.sdk.event.util;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport org.apache.camel.Converter;%0A%0A/**%0A * Uses Camel's conversion system to convert from a %7B@link InputStream%7D to %7B@link List%7D%0A * %0A * @author davidg%0A *%0A */%0A@Converter%0Apublic final class InputStreamConverter %7B%0A%0A%09@Converter%0A%09public static List%3CString%3E toList(InputStream stream) %7B%0A%0A%09%09BufferedReader bufferedReader = null;%0A%0A%09%09bufferedReader = new BufferedReader(new InputStreamReader(stream));%0A%09%09List%3CString%3E lines = new ArrayList%3CString%3E();%0A%09%09%0A%09%09String line = null;%0A%09%09try %7B%0A%09%09%09while ((line = bufferedReader.readLine()) != null) %7B%0A%09%09%09%09System.out.println(line);%0A%09%09%09%09lines.add(line);%0A%09%09%09%7D%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09%0A%09%09return lines;%0A%09%7D%0A%0A%7D%0A

Add converter from InputStream to List