Class LProcess

  • All Implemented Interfaces:
    Lazy<Blob>

    public class LProcess
    extends java.lang.Process
    implements Lazy<Blob>
    A process whose lazy "value" is the bytes from standard output.
    • Constructor Summary

      Constructors 
      Constructor Description
      LProcess​(java.lang.Process process)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      int exitValue()  
      java.io.InputStream getErrorStream()  
      java.io.InputStream getInputStream()  
      java.io.OutputStream getOutputStream()  
      Blob getValue()
      Return the actual value.
      int waitFor()  
      • Methods inherited from class java.lang.Process

        children, descendants, destroyForcibly, info, isAlive, onExit, pid, supportsNormalTermination, toHandle, waitFor
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LProcess

        public LProcess​(java.lang.Process process)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in class java.lang.Process
      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Specified by:
        getOutputStream in class java.lang.Process
      • getErrorStream

        public java.io.InputStream getErrorStream()
        Specified by:
        getErrorStream in class java.lang.Process
      • waitFor

        public int waitFor()
                    throws java.lang.InterruptedException
        Specified by:
        waitFor in class java.lang.Process
        Throws:
        java.lang.InterruptedException
      • exitValue

        public int exitValue()
        Specified by:
        exitValue in class java.lang.Process
      • destroy

        public void destroy()
        Specified by:
        destroy in class java.lang.Process
      • getValue

        public Blob getValue()
        Description copied from interface: Lazy
        Return the actual value. Note that getValue() may return this, if this object isn't actually lazy. It may also return another lazy value. Normally you should use Promise.force{val} to extra a non-lazy (eager) value.
        Specified by:
        getValue in interface Lazy<Blob>