Commit Graph

14 Commits

Author SHA1 Message Date
Robert Greene
d93c504165 Changed test to test byte-by-byte instead of a String, since some of the data files are binary. 2008-06-27 18:41:15 +00:00
Robert Greene
acb0912244 Removed some unit tests that took a bit of setup to get working; added a helper functions to HeaderBlock (getting filename and data or resource fork) and ThreadRecord (get correct InputStream); most LZW tests now compare to expected results. Not all test issues have been resolved. 2008-06-27 04:19:21 +00:00
Robert Greene
ac9626e9c0 Adding support for LZW/2 scheme. Fixed both LZW/1 and LZW/2 to handle "multichunk" files (that is, files more than 4K long). Renamed the NuFX-specific LZW streams to be NufxLzw[12]InputStream. Tests need to be revamped heavily. Added some sample archives with both formats that have the same answer. 2008-06-25 03:22:17 +00:00
Robert Greene
58af449378 This adds NuFX LZW/1 decompression support. 2008-06-23 04:03:42 +00:00
Robert Greene
0511fbfce5 Switched ByteSource to be an InputStream; renamed ByteSource LittleEndianByteInputStream. 2008-06-22 23:57:49 +00:00
Robert Greene
ec9c833f58 Adding basic LZW and RLE decompression algorithms implemented as InputStreams. The tests aren't quite test, but do verify they are functional. 2008-06-22 17:57:23 +00:00
John B. Matthews
ad3558f84a Preserve 1.5 compatibility. 2008-06-17 16:39:24 +00:00
Robert Greene
4371c7a730 Added ability to get the CRC-16 from a ByteSource and for the MasterHeaderBlock to validate its CRC-16. 2008-06-17 04:09:56 +00:00
Robert Greene
6c241ea036 Added some masking to prevent a byte with the high bit set (0x80 or more) to flip into negative numbers; also altered to use an int in update. 2008-06-17 04:09:03 +00:00
Robert Greene
27ee990c43 A basic scan utility that locates archive files and dumps their file lists. 2008-06-17 02:54:50 +00:00
Robert Greene
99cb124c45 Switched over to Java 5.0. 2008-06-17 02:48:26 +00:00
Robert Greene
8e090c179e ThreadFormat now knows its code; changed logic of find to use the coding instead of a switch statement. 2008-06-17 02:47:48 +00:00
John B. Matthews
c0c6a6a55a Add CRC16. 2008-06-17 01:22:41 +00:00
Robert Greene
68a5b3a5f5 Initial commit. Reads basic NuFile/NuFX archive format. Does not handle CRC-16, does not write, does not handle compressed threads. 2008-06-16 03:37:52 +00:00