Commit Graph

13 Commits

Author SHA1 Message Date
Robert Greene
af85d76306 Adding BitOutputStream; moved bit mask constants into BitConstants interface for both the input and the output stream. 2008-06-28 15:01:26 +00:00
Robert Greene
69debc0765 Adding a textual description for failures. 2008-06-28 15:00:39 +00:00
Robert Greene
fe1bfde65e Adding a test of uncompressed files just to make sure it actually works! 2008-06-27 19:14:23 +00:00
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
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
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