as a buffer.
Write a package of wrappers around his functions, and then only export those functions from the wrapper. There is no way for a module's code to run over yours if you don't import it into your package. Most of us (well, me anyway) use the main package without bothering to name it. Java doesn't let you get away with this, but since you argued for using Java, maybe you should adopt this habit. Then don't import anything into your named package that you didn't write.