Java Reference
In-Depth Information
< Day Day Up >
11. I/O
This section concerns the package java.util.io .
11.1. Stream.close can throw IOException
Prescription: Catch and, typically, ignore exceptions on close .
References: Puzzle 41 .
11.2. PrintStream.write(int) doesn't flush output streams
Prescription: Avoid PrintStream.write(int) . If you use it, call flush as required.
References: Puzzle 81 .
11.3. Consume the output of a process, or it may hang
Prescription: Always consume the output of processes you create.
References: Puzzle 82 .
< Day Day Up >
 
 
Search WWH ::




Custom Search