equal
deleted
inserted
replaced
46 * @author James Gosling |
46 * @author James Gosling |
47 * @see java.io.PipedOutputStream |
47 * @see java.io.PipedOutputStream |
48 * @since 1.0 |
48 * @since 1.0 |
49 */ |
49 */ |
50 public class PipedInputStream extends InputStream { |
50 public class PipedInputStream extends InputStream { |
51 boolean closedByWriter = false; |
51 boolean closedByWriter; |
52 volatile boolean closedByReader = false; |
52 volatile boolean closedByReader; |
53 boolean connected = false; |
53 boolean connected; |
54 |
54 |
55 /* REMIND: identification of the read and write sides needs to be |
55 /* REMIND: identification of the read and write sides needs to be |
56 more sophisticated. Either using thread groups (but what about |
56 more sophisticated. Either using thread groups (but what about |
57 pipes within a thread?) or using finalization (but it may be a |
57 pipes within a thread?) or using finalization (but it may be a |
58 long time until the next GC). */ |
58 long time until the next GC). */ |