예제 #1
0
  public BufferedOutputFile getDirectBuffer() throws IOException {
    if (!PMS.get().isWindows()) {
      return null;
    }

    return mk.getDirectBuffer();
  }
예제 #2
0
  public OutputStream getOutputStream() throws IOException {
    if (!PMS.get().isWindows()) {
      LOGGER.trace("Opening file " + linuxPipeName + " for writing...");
      RandomAccessFile raf = new RandomAccessFile(linuxPipeName, "rw");

      return new FileOutputStream(raf.getFD());
    }

    return mk.getWritable();
  }
예제 #3
0
  public InputStream getInputStream() throws IOException {
    if (!PMS.get().isWindows()) {
      LOGGER.trace("Opening file " + linuxPipeName + " for reading...");
      RandomAccessFile raf = new RandomAccessFile(linuxPipeName, "r");

      return new FileInputStream(raf.getFD());
    }

    return mk.getReadable();
  }
예제 #4
0
 public String getOutputPipe() {
   if (!PMS.get().isWindows()) {
     return linuxPipeName;
   }
   return mk.getPipeName();
 }