com.caucho.vfs
Interface SendfileOutputStream

All Known Implementing Classes:
HttpResponseStream, NullWriteStream, WriteStream

public interface SendfileOutputStream

An OutputStream which supports sendfile and mmap.


Method Summary
 boolean isMmapEnabled()
           
 boolean isSendfileEnabled()
           
 void writeMmap(long mmapAddress, long[] mmapBlocks, long mmapOffset, long mmapLength)
           
 void writeSendfile(byte[] fileName, int nameLength, long fileLength)
           
 

Method Detail

isMmapEnabled

boolean isMmapEnabled()

writeMmap

void writeMmap(long mmapAddress,
               long[] mmapBlocks,
               long mmapOffset,
               long mmapLength)
               throws java.io.IOException
Throws:
java.io.IOException

isSendfileEnabled

boolean isSendfileEnabled()

writeSendfile

void writeSendfile(byte[] fileName,
                   int nameLength,
                   long fileLength)
                   throws java.io.IOException
Throws:
java.io.IOException