title: Java subprocess pipe file descriptor
body: <p>This may seem a bit daft, but</p>
  
  <ul>
  <li>My Java code creates a sub-process</li>
  <li>I have a native function used elsewhere in the Java code which takes a pipe's file descriptor as an argument, and writes to that pipe.</li>
  <li>I want the function to write to the sub-process's standard input.</li>
  </ul>
  
  <p>Is there a sensible way of achieving this?</p>
  
  <p>This question may appear to be related to <a href="https://stackoverflow.com/questions/21041303/pipe-series-of-images-from-java-application-to-ffmpeg-subprocess">this</a>, but differs in that I can't just use the <code>OutputStream</code>s provided by <code>Process</code>, because the native function takes an FD.</p>