2525 * @version $Id$
2626 */
2727public class DemuxOutputStream extends OutputStream {
28- private final InheritableThreadLocal <OutputStream > m_streams = new InheritableThreadLocal <OutputStream >();
28+ private final InheritableThreadLocal <OutputStream > outputStreamThreadLocal = new InheritableThreadLocal <OutputStream >();
2929
3030 /**
3131 * Binds the specified stream to the current thread.
@@ -35,8 +35,8 @@ public class DemuxOutputStream extends OutputStream {
3535 * @return the OutputStream that was previously active
3636 */
3737 public OutputStream bindStream (final OutputStream output ) {
38- final OutputStream stream = m_streams .get ();
39- m_streams .set (output );
38+ final OutputStream stream = outputStreamThreadLocal .get ();
39+ outputStreamThreadLocal .set (output );
4040 return stream ;
4141 }
4242
@@ -48,7 +48,7 @@ public OutputStream bindStream(final OutputStream output) {
4848 */
4949 @ Override
5050 public void close () throws IOException {
51- final OutputStream output = m_streams .get ();
51+ final OutputStream output = outputStreamThreadLocal .get ();
5252 if (null != output ) {
5353 output .close ();
5454 }
@@ -62,7 +62,7 @@ public void close() throws IOException {
6262 */
6363 @ Override
6464 public void flush () throws IOException {
65- final OutputStream output = m_streams .get ();
65+ final OutputStream output = outputStreamThreadLocal .get ();
6666 if (null != output ) {
6767 output .flush ();
6868 }
@@ -78,7 +78,7 @@ public void flush() throws IOException {
7878 */
7979 @ Override
8080 public void write (final int ch ) throws IOException {
81- final OutputStream output = m_streams .get ();
81+ final OutputStream output = outputStreamThreadLocal .get ();
8282 if (null != output ) {
8383 output .write (ch );
8484 }
0 commit comments