unused old SwingJS dependencies
[jalview.git] / unused / org / apache / tools / bzip2 / CBZip2InputStreamFactory.java
1 package org.apache.tools.bzip2;
2
3 import java.io.IOException;
4 import java.io.InputStream;
5
6 public class CBZip2InputStreamFactory {
7   
8   /**
9    * jsjava addition for reflection
10    * 
11    * @param is
12    * @return BZip2 input stream
13    * @throws IOException 
14    */
15   public CBZip2InputStream getStream(InputStream is) throws IOException {
16     is.read(new byte[2], 0, 2);
17     return new CBZip2InputStream(is);
18   }
19
20 }
21