public class DefaultBlockWriter extends Object implements BlockWriter
Modifier and Type | Field and Description |
---|---|
protected CompactWriter |
writer |
Constructor and Description |
---|
DefaultBlockWriter(CompactWriter writer) |
Modifier and Type | Method and Description |
---|---|
void |
writeBlock(FileBlock block) |
void |
writeHeader(FileHeader header) |
protected final CompactWriter writer
public DefaultBlockWriter(CompactWriter writer)
public void writeHeader(FileHeader header) throws IOException
writeHeader
in interface BlockWriter
IOException
public void writeBlock(FileBlock block) throws IOException
writeBlock
in interface BlockWriter
IOException