Try the Apache Commons TeeOutputStream.
More Related Contents:
- What is InputStream & Output Stream? Why and when do we use them?
- Process a file line by line
- Scanner is skipping nextLine() after using next() or nextFoo()?
- How to append text to an existing file in Java?
- Scanner is skipping nextLine() after using next() or nextFoo()?
- How do I create a Java string from the contents of a file?
- How can I read a large text file line by line using Java?
- How do I get the file extension of a file in Java?
- How to convert OutputStream to InputStream?
- byte[] to file in Java
- Can you explain the HttpURLConnection connection process?
- Java – How Can I Write My ArrayList to a file, and Read (load) that file to the original ArrayList?
- What throws an IOException in Java?
- How to copy file from one location to another location?
- FileInputStream vs FileReader
- Modify the content of a file using Java
- How to make a folder hidden using java
- Get file name from FileOutputStream
- Listing files in a directory matching a pattern in Java [duplicate]
- How can I clear the Scanner buffer in Java?
- In Java, what is the default location for newly created files?
- java.io.StreamCorruptedException: invalid stream header: 7371007E
- Given a Java InputStream, how can I determine the current offset in the stream?
- How to break a file into pieces using Java?
- How can I read comma separated values from a text file in Java?
- Resetting Standard output Stream
- Will using longs instead of ints benefit in 64bit java
- Why does FileChannel.map take up to Integer.MAX_VALUE of data?
- ObjectInputStream(socket.getInputStream()); does not work
- Test if a file is an image file