@Test public void testCreateFile() throws Exception { int bytes = TEXT.length(); ByteArrayInputStream in = new ByteArrayInputStream(TEXT.getBytes()); File f = StreamUtil.createFile(in, bytes); assertNotNull(f); assertEquals(TEXT, new String(read(f))); FileUtils.deleteQuietly(f); }
public static File createFile(InputStream input, int expected) throws IOException { return createFile(input, expected, null); }
StreamUtil { public static File createFile(InputStream input, int expected) throws IOException { return createFile(input, expected, null); } }
StreamUtil { public static File createFile(InputStream input, int expected) throws IOException { return createFile(input, expected, null); }  }
StreamUtil { public static File createFile(InputStream input, int expected) throws IOException { return createFile(input, expected, null); }  static File createFile(InputStream input, int expected); static File createFile(InputStream input, int expected, String dir); static void copyStream(InputStream input, OutputStream output,
                                int expected); static void copyStream(InputStream input, OutputStream output); static InputStream makeCopy(InputStream input); static void copyAndClose(InputStream input, Writer out); static void copyAndClose(InputStream input, Writer out, Charset charset); static void copyAndClose(InputStream input, OutputStream out); }
StreamUtil { public static File createFile(InputStream input, int expected) throws IOException { return createFile(input, expected, null); }  static File createFile(InputStream input, int expected); static File createFile(InputStream input, int expected, String dir); static void copyStream(InputStream input, OutputStream output,
                                int expected); static void copyStream(InputStream input, OutputStream output); static InputStream makeCopy(InputStream input); static void copyAndClose(InputStream input, Writer out); static void copyAndClose(InputStream input, Writer out, Charset charset); static void copyAndClose(InputStream input, OutputStream out);  }