File tree Expand file tree Collapse file tree
src/java/org/apache/commons/io/output Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
2- * Copyright 2001-2004 The Apache Software Foundation.
2+ * Copyright 2001-2005 The Apache Software Foundation.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16-
17-
1816package org .apache .commons .io .output ;
1917
2018import java .io .File ;
@@ -51,13 +49,6 @@ public class DeferredFileOutputStream
5149 private ByteArrayOutputStream memoryOutputStream ;
5250
5351
54- /**
55- * The output stream to which data will be written after the theshold is
56- * reached.
57- */
58- private FileOutputStream diskOutputStream ;
59-
60-
6152 /**
6253 * The output stream to which data will be written at any given time. This
6354 * will always be one of <code>memoryOutputStream</code> or
@@ -121,7 +112,6 @@ protected void thresholdReached() throws IOException
121112 {
122113 FileOutputStream fos = new FileOutputStream (outputFile );
123114 memoryOutputStream .writeTo (fos );
124- diskOutputStream = fos ;
125115 currentOutputStream = fos ;
126116 memoryOutputStream = null ;
127117 }
You can’t perform that action at this time.
0 commit comments