- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {BufferedReader b =
InputStream in;new BufferedReader(new InputStreamReader(in))
Reader in;new BufferedReader(in)
File file;new BufferedReader(new FileReader(file))
- Smart code suggestions by Codota
}
public static void copyStreamToStream(InputStream src, OutputStream dst) throws IOException { copyStreamToStream(src, dst, true); }
public static void copyStreamToStream(InputStream src, OutputStream dst) throws IOException { copyStreamToStream(src, dst, true); }
public static void putInputStreamToFile(InputStream src, File file) throws IOException { FileOutputStream stream = null; try { if (file.getParentFile() != null) file.getParentFile().mkdirs(); stream = new FileOutputStream(file); copyStreamToStream(src, stream); } finally { try { if (stream != null) stream.close(); } catch (Exception e) { Debug.debug(e); } } }
public static void putInputStreamToFile(InputStream src, File file) throws IOException { FileOutputStream stream = null; try { if (file.getParentFile() != null) file.getParentFile().mkdirs(); stream = new FileOutputStream(file); copyStreamToStream(src, stream); } finally { try { if (stream != null) stream.close(); } catch (Exception e) { Debug.debug(e); } } }