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.