()
| 441 | } |
| 442 | |
| 443 | @Override |
| 444 | public long getBufferSize() { |
| 445 | if (codec == null) { |
| 446 | return uncompressedBytes + (current == null ? 0 : current.remaining()); |
| 447 | } else { |
| 448 | long result = 0; |
| 449 | if (current != null) { |
| 450 | result += current.capacity(); |
| 451 | } |
| 452 | return result + compressedBuffer.getCapacity() + compressedBytes; |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | /** |
| 457 | * Set suppress flag |