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) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public SnappyOutputStreamWrapper(org.xerial.snappy.SnappyOutputStream os)
public void close()
close
in interface java.io.Closeable
close
in interface AutoCloseable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(int b)
write
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream