[jcifs] memory-mapped files

whee whee at tut.by
Mon Jul 20 20:25:34 MDT 2009

Is it possible using jcifs package to map files on server side into memory of
the client side?

In core java to map part of file into memory on single computer code would
        ByteBuffer buf = ByteBuffer.allocate(length);
        try {          
        	File f = new File(path);
        	RandomAccessFile raf = new RandomAccessFile(f, "r");      
        	FileChannel rCh = raf.getChannel();     
        	buf = rCh.map(FileChannel.MapMode.READ_ONLY, offset, length);
        } catch (Exception e) {               

the realization of map method(mmap function on unix-based os and
CreateFileMapping+MapViewOfFile on windows os) of FileChannel Class decrease
the time of access to large blocks of file and so is very usefull.

As for jcifs package i understand that you can't do so directly, because
classes don't have relevant methods. But maybe there are some indirect ways?
Will corresponding methods be added later?
View this message in context: http://www.nabble.com/memory-mapped-files-tp24580723p24580723.html
Sent from the Samba - jcifs mailing list archive at Nabble.com.

More information about the jcifs mailing list