Can we create kdb compatible binary file programmitally to replay later?

https://learninghub.kx.com/forums/topic/can-we-create-kdb-compatible-binary-file-programmitally-to-replay-later

Using -11! Stream Exueture ( e.g. https://code.kx.com/q/kb/replay-log/), one replay log file in kdb.

But, can we create that logfile programmitically either using java, c++ or pythong without any kdb libraries? ( I need in java especially).

Question is, Can we create programmitally kdb compatible binary file sothat it would be used to load data later in q? ( for example same log file logfile.2013.12.03 as in https://code.kx.com/q/kb/replay-log/ ) ?