switch (location) {
case Buffer:
if (bufferSize < 0) {
outputStream = this.bufferStream;
} else {
outputStream = new HardThresholdingOutputStream(bufferSize) {
@Override
protected OutputStream getStream() throws IOException {
return bufferTruncated ? NullOutputStream.NULL_OUTPUT_STREAM : bufferStream;
}