com.st.maven.debian.ArWrapper Maven / Gradle / Ivy
The newest version!
package com.st.maven.debian;
import java.io.IOException;
import java.io.OutputStream;
import com.google.code.ar.ArFileOutputStream;
/**
* This wrapper is required for flushing and closing GZIP stream, while leaving
* original Ar stream unaffected
*
*/
class ArWrapper extends OutputStream {
private final ArFileOutputStream fos;
ArWrapper(ArFileOutputStream fos) {
this.fos = fos;
}
@Override
public void write(int b) throws IOException {
fos.write(b);
}
@Override
public void write(byte[] b) throws IOException {
fos.write(b);
}
@Override
public void write(byte[] b, int off, int len) throws IOException {
fos.write(b, off, len);
}
@Override
public void close() throws IOException {
// do nothing
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy