public final class SnappyOutputStreamWrapper
extends java.io.OutputStream
SnappyOutputStream which guards against write-after-close and double-close
issues. See SPARK-7660 for more details. This wrapping can be removed if we upgrade to a version
of snappy-java that contains the fix for https://github.com/xerial/snappy-java/issues/107.| Constructor and Description |
|---|
SnappyOutputStreamWrapper(org.xerial.snappy.SnappyOutputStream os) |
public SnappyOutputStreamWrapper(org.xerial.snappy.SnappyOutputStream os)
public void write(int b)
write in class java.io.OutputStreampublic void write(byte[] b)
write in class java.io.OutputStreampublic void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void close()
close in interface java.io.Closeableclose in interface AutoCloseableclose in class java.io.OutputStream