@InterfaceAudience.Private @InterfaceStability.Unstable public class IFileOutputStream extends FilterOutputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
barray |
protected boolean |
finished |
protected org.apache.hadoop.util.DataChecksum |
sum
The output stream to be checksummed.
|
out
Constructor and Description |
---|
IFileOutputStream(OutputStream out)
Create a checksum output stream that writes
the bytes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Finishes writing data to the output stream, by writing
the checksum bytes to the end.
|
void |
finish(long decompBytes,
long compBytes) |
void |
write(byte[] b,
int off,
int len)
Write bytes to the stream.
|
void |
write(int b) |
flush, write
protected final org.apache.hadoop.util.DataChecksum sum
protected byte[] barray
protected boolean finished
public IFileOutputStream(OutputStream out)
out
- public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
public void finish() throws IOException
IOException
public void finish(long decompBytes, long compBytes) throws IOException
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
Copyright © 2016 Apache Software Foundation. All Rights Reserved.