Discussion on:
View:
Show:
The flush() method writes out any buffered data to the physical stream. However, the close() method will flush any buffers as well. The decision flush or not depends on the individual application. If the physical device is known and repeated writesto the device will result in a dramatic decrease in performance, it may be a good idea to wait and only flush periodically. However, if it is vital that the data be written to the physical device with each call, then it is probably a good idea to flush.
While readers and writers are convenient, it is much more efficient to use the stream classes to read and write data. The stream classes are closer to the native/physical data source.
I have a hard time agreeing with you. The buffered readers and writers are direct optimizations on the stream classes. It is hard to believe that they are not more efficient.
I understand that for more advance Java advocates that the extra code would be tedious and not nessesary, but for some of us Java newbies, complete source to build, run, and to know what to import would be very nice...
As it is now there are straight examples, which are nice, but I dont know what package to include and would like to see the code working.
Not all of it has to be complete but the last big one should of been complete....
later
As it is now there are straight examples, which are nice, but I dont know what package to include and would like to see the code working.
Not all of it has to be complete but the last big one should of been complete....
later
can someone help me read data from writable datasource to java methods.
- Keyboard Shortcuts:
- Prev
- Next
- Toggle









































