Though I think most of us are just using FileChannel, which has nothing really to do with the nonblocking functionality; it's just fast.
Originally posted by Andrew Monkhouse:
In you match() method - nice use of &= (last time I did that, my team spent 15 minutes reviewing 200 lines of code, and 45 minutes reviewing my use of &= ) but I wonder if it is worthwhile?
The more I think about it though, the more I think maybe I should always trim() strings when they're read and pad with spaces when storing, just as Jeff plans to do.
Originally posted by Ta Ri Ki Sun:
no Shan, DBMain is implemented by Data which does all the dog work, and DataFacade has methods like Map findRooms(String criteria) throws Exception; , void bookRoom(int recNo, String owner) throws Exception; , these methods use several Data methods to get the job done,
Originally posted by Erik Manor:
00 is octal for 0 (1 byte), 0xFF is hex for 255. Since byte is signed 255 does not fit in a byte without a cast. With a cast 255 is -1.
Originally posted by Michael Dreese:
If DataInputStream/DataOutputStream did implement the reset method, I would not have to use RandomAccessFile.