本文整理了Java中com.github.luben.zstd.ZstdOutputStream
类的一些代码示例,展示了ZstdOutputStream
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZstdOutputStream
类的具体详情如下:
包路径:com.github.luben.zstd.ZstdOutputStream
类名称:ZstdOutputStream
暂无
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for {@code level}, {@code
* closeFrameOnFlush} and {@code useChecksum}.
* @param outStream the stream to write to
* @throws IOException if zstd-jni does
*/
public ZstdCompressorOutputStream(final OutputStream outStream) throws IOException {
this.encOS = new ZstdOutputStream(outStream);
}
代码示例来源:origin: org.apache.commons/commons-compress
@Override
public void close() throws IOException {
encOS.close();
}
代码示例来源:origin: org.apache.commons/commons-compress
@Override
public void flush() throws IOException {
encOS.flush();
}
}
代码示例来源:origin: org.apache.commons/commons-compress
@Override
public void write(final byte[] buf, final int off, final int len) throws IOException {
encOS.write(buf, off, len);
}
代码示例来源:origin: org.apache.commons/commons-compress
@Override
public void write(final int b) throws IOException {
encOS.write(b);
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for {@code useChecksum}.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @param closeFrameOnFlush value for zstd-jni's closeFrameOnFlush argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush)
throws IOException {
this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@Override
public void write(final int b) throws IOException {
encOS.write(b);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
public void flush() throws IOException {
encOS.flush();
}
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
public void close() throws IOException {
encOS.close();
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for {@code closeFrameOnFlush}
* and {@code useChecksum}.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level) throws IOException {
this.encOS = new ZstdOutputStream(outStream, level);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
public void write(final int b) throws IOException {
encOS.write(b);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@Override
public void flush() throws IOException {
encOS.flush();
}
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@Override
public void close() throws IOException {
encOS.close();
}
代码示例来源:origin: org.apache.commons/commons-compress
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @param closeFrameOnFlush value for zstd-jni's closeFrameOnFlush argument
* @param useChecksum value for zstd-jni's useChecksum argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush,
boolean useChecksum) throws IOException {
this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush, useChecksum);
}
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
@Override
public void write(final byte[] buf, final int off, final int len) throws IOException {
encOS.write(buf, off, len);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for {@code level}, {@code
* closeFrameOnFlush} and {@code useChecksum}.
* @param outStream the stream to write to
* @throws IOException if zstd-jni does
*/
public ZstdCompressorOutputStream(final OutputStream outStream) throws IOException {
this.encOS = new ZstdOutputStream(outStream);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
@Override
public void write(final byte[] buf, final int off, final int len) throws IOException {
encOS.write(buf, off, len);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default value for {@code useChecksum}.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @param closeFrameOnFlush value for zstd-jni's closeFrameOnFlush argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush)
throws IOException {
this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream using the default values for {@code closeFrameOnFlush}
* and {@code useChecksum}.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level) throws IOException {
this.encOS = new ZstdOutputStream(outStream, level);
}
代码示例来源:origin: KostyaSha/yet-another-docker-plugin
/**
* Wraps the given stream into a zstd-jni ZstdOutputStream.
* @param outStream the stream to write to
* @param level value for zstd-jni's level argument
* @param closeFrameOnFlush value for zstd-jni's closeFrameOnFlush argument
* @param useChecksum value for zstd-jni's useChecksum argument
* @throws IOException if zstd-jni does
* @since 1.18
*/
public ZstdCompressorOutputStream(final OutputStream outStream, int level, boolean closeFrameOnFlush,
boolean useChecksum) throws IOException {
this.encOS = new ZstdOutputStream(outStream, level, closeFrameOnFlush, useChecksum);
}
内容来源于网络,如有侵权,请联系作者删除!