|
|
|
|
|
|
|
|
|
|
|
|
|
|
private long count; |
|
|
private long count; |
|
|
|
|
|
|
|
|
private byte[] headerBuffer = new byte[32]; |
|
|
|
|
|
|
|
|
private final byte[] headerBuffer = new byte[32]; |
|
|
|
|
|
|
|
|
private byte[] copyBuffer; |
|
|
|
|
|
|
|
|
private final byte[] copyBuffer = new byte[16 << 10]; |
|
|
|
|
|
|
|
|
private long checkCancelAt; |
|
|
private long checkCancelAt; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** @return a temporary buffer writers can use to copy data with. */ |
|
|
/** @return a temporary buffer writers can use to copy data with. */ |
|
|
public byte[] getCopyBuffer() { |
|
|
public byte[] getCopyBuffer() { |
|
|
if (copyBuffer == null) |
|
|
|
|
|
copyBuffer = new byte[16 * 1024]; |
|
|
|
|
|
return copyBuffer; |
|
|
return copyBuffer; |
|
|
} |
|
|
} |
|
|
|
|
|
|