// with differing values of bufferSize and should handle this situation
// correctly.
if (bufferSize == -1) {
if (this.secureOutputStream == null) {
this.secureOutputStream = new BufferedOutputStream(this.outputStream);
}
return this.secureOutputStream;
} else if (bufferSize == 0) {
// Discard secure output stream if it was created before.
if (this.secureOutputStream != null) {