create changelog entry
[debian/openrocket] / core / src / net / sf / openrocket / util / UncloseableInputStream.java
1 package net.sf.openrocket.util;
2
3 import java.io.FilterInputStream;
4 import java.io.IOException;
5 import java.io.InputStream;
6
7 /**
8  * An InputStream filter that prevents closing the source stream.  The
9  * {@link #close()} method is overridden to do nothing.
10  * 
11  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
12  */
13 public class UncloseableInputStream extends FilterInputStream {
14         
15         public UncloseableInputStream(InputStream in) {
16                 super(in);
17         }
18         
19         @Override
20         public void close() throws IOException {
21                 // No-op
22         }
23 }