
org.apache.tools.bzip2.CBZip2InputStreamFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmol Show documentation
Show all versions of jmol Show documentation
Jmol: an open-source Java viewer for chemical structures in 3D
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