
net.yapbam.data.xml.task.DeflaterTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yapbam-commons Show documentation
Show all versions of yapbam-commons Show documentation
Commons Yapbam classes used by desktop and Android versions.
package net.yapbam.data.xml.task;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.zip.DeflaterOutputStream;
/** Deflation task.
*
This task compresses an input stream and output it to an output stream.
*/
public class DeflaterTask extends FilterTask {
/** Constructor.
* @param in An input stream
* @param out The output stream where to output the compressed data
*/
public DeflaterTask(InputStream in, OutputStream out) {
super (in, out);
}
@Override
public OutputStream buildFilteredOutputStream(OutputStream out) {
return new DeflaterOutputStream(out);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy