All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.tools.bzip2.CBZip2InputStreamFactory Maven / Gradle / Ivy

There is a newer version: 14.31.10
Show newest version
package org.apache.tools.bzip2;

import java.io.IOException;
import java.io.InputStream;

public class CBZip2InputStreamFactory {
  
  /**
   * jsjava addition for reflection
   * 
   * @param is
   * @return BZip2 input stream
   * @throws IOException 
   */
  public CBZip2InputStream getStream(InputStream is) throws IOException {
    is.read(new byte[2], 0, 2);
    return new CBZip2InputStream(is);
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy