File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 *
2929 */
3030public class DemuxInputStream extends InputStream {
31- private final InheritableThreadLocal <InputStream > m_streams = new InheritableThreadLocal <>();
31+ private final InheritableThreadLocal <InputStream > inputStream = new InheritableThreadLocal <>();
3232
3333 /**
3434 * Bind the specified stream to the current thread.
@@ -37,8 +37,8 @@ public class DemuxInputStream extends InputStream {
3737 * @return the InputStream that was previously active
3838 */
3939 public InputStream bindStream (final InputStream input ) {
40- final InputStream oldValue = m_streams .get ();
41- m_streams .set (input );
40+ final InputStream oldValue = inputStream .get ();
41+ inputStream .set (input );
4242 return oldValue ;
4343 }
4444
@@ -49,7 +49,7 @@ public InputStream bindStream(final InputStream input) {
4949 */
5050 @ Override
5151 public void close () throws IOException {
52- IOUtils .close (m_streams .get ());
52+ IOUtils .close (inputStream .get ());
5353 }
5454
5555 /**
@@ -60,7 +60,7 @@ public void close() throws IOException {
6060 */
6161 @ Override
6262 public int read () throws IOException {
63- final InputStream input = m_streams .get ();
63+ final InputStream input = inputStream .get ();
6464 if (null != input ) {
6565 return input .read ();
6666 }
You can’t perform that action at this time.
0 commit comments