[prev in list] [next in list] [prev in thread] [next in thread]
List: freenet-dev
Subject: [Freenet-dev] build 126
From: Oskar Sandberg <md98-osa () nada ! kth ! se>
Date: 2000-04-27 17:21:00
[Download RAW message or body]
I added interfaces for Document, Data, and DataProperties. The old
implementations (more or less, I ripped out a bunch of the old confusing unused
methods from Data) are now called FileDocument, FileData, and
FileDataProperties. I need to be able to replace this to make an efficient
testbed, but it is also useful for alternate ways of storing the data (in a
database maybe).
To create a new Document, you should now use the newDocument method of the
DataStore, so that the messages don't assume any one implementation. I made
FileDocument abstract to enforce this. Data and DataProperties objects are
created with the Document, and can retrieved by the data() and props() methods.
--
Oskar Sandberg
md98-osa@nada.kth.se
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic