31323334353637
{ return new StringFile(createObjectFileMem(filename)) ; } public static ObjectFile createObjectFileDisk(String filename) { BufferChannel file = BufferChannelFile.create(filename) ; return new ObjectFileStorage(file) ; }
37383940414243
} public static ObjectFile createObjectFileMem(String filename) { BufferChannel file = BufferChannelMem.create(filename) ; return new ObjectFileStorage(file) ; }
40414243444546
{ // Old. //return new com.hp.hpl.jena.tdb.base.objectfile.ObjectFileMem(filename) ; // Newer way. BufferChannel file = BufferChannelMem.create(filename) ; return new ObjectFileStorage(file) ; }
3536373839404142
// BufferChannel chan = new BufferChannelFile(fn) ; // return new ObjectFileStorage(chan) ; BufferChannel chan = BufferChannelMem.create() ; // Small buffer return new ObjectFileStorage(chan,10) ; }
{ return new StringFile(createObjectFileMem(filename)) ; } public static ObjectFile createObjectFileDisk(String filename) { BufferChannel file = new BufferChannelFile(filename) ; return new ObjectFileStorage(file) ; }