Hi,
I am attempting to write a MyList.DcLst class, but I can´t find any info on how the codewords are stored and delimited etc. Anyone that knows anything about this?
I am familiar with huffman.
Sincerely
Piotr B
MyList.DcLst decoding
Moderator: Moderators
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Have a look here: http://dcplusplus.sourceforge.net/forum ... ht=huffman
The version I linked to doesn't actually work "correctly", but files created by it can be opened in DC++. I'm not sure whether or not files created by DC++ can be opened by it though.
More details of th encoding scheme itself can be found here:
http://dcplusplus.sourceforge.net/forum ... php?t=1882
I think the difficulty lies in the fact that the particular encoding scheme used uses unsigned data types which are not available in Java and are therefore fiddly to work with.
Personally I would abandon the format completely and just stick with the more open and extensible XML file lists. But that's just me.
If you make any progress, please post back the results as others may find it useful.
The version I linked to doesn't actually work "correctly", but files created by it can be opened in DC++. I'm not sure whether or not files created by DC++ can be opened by it though.
More details of th encoding scheme itself can be found here:
http://dcplusplus.sourceforge.net/forum ... php?t=1882
I think the difficulty lies in the fact that the particular encoding scheme used uses unsigned data types which are not available in Java and are therefore fiddly to work with.
Personally I would abandon the format completely and just stick with the more open and extensible XML file lists. But that's just me.
If you make any progress, please post back the results as others may find it useful.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Seconded. Support XML file lists.TheParanoidOne wrote:Personally I would abandon the format completely and just stick with the more open and extensible XML file lists. But that's just me.
You need to at least support the generation of .DcLst files, and there are existing Java DC clients that you can look at for code:
http://sourceforge.net/projects/javadc/
http://sourceforge.net/projects/javadc2/
http://sourceforge.net/projects/javadc3/