public abstract class CountingOutputStream extends Object
Modifier and Type | Field and Description |
---|---|
protected ExtendedDataOutput |
dataOutput
DataOutput to which subclasses will be writing data
|
Constructor and Description |
---|
CountingOutputStream()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
flush()
Returns all the data from the stream and clears it.
|
protected int |
getSize()
Get the number of bytes in the stream
|
protected void |
incrementCounter()
Subclasses should call this method when an object is written
|
protected ExtendedDataOutput dataOutput
protected void incrementCounter()
protected int getSize()
public byte[] flush()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.