com.caucho.vfs
Interface SendfileOutputStream
- All Known Implementing Classes:
- HttpResponseStream, NullWriteStream, WriteStream
public interface SendfileOutputStream
An OutputStream which supports sendfile and mmap.
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