How to inplement Zero Copy in Application where Client and server Using some Protocol for read/write file

228 Views Asked by At

By using java I have to read/write files with addition of header information. Like when a client wants to write one file, it will first send header information(length, fileinfo...) with DataOutputStream and then actual file content.

My file content are not required on application level. Is this possible to implement Zero Copy with same socket channel so I can transfer header info of file then file content.

How can i implement Zero Copy in this case.

0

There are 0 best solutions below