Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.emory.mathcs.util.natives
Class ExecUtils.Redir  view ExecUtils.Redir download ExecUtils.Redir.java

java.lang.Object
  extended byedu.emory.mathcs.util.natives.ExecUtils.Redir
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ExecUtils

private static class ExecUtils.Redir
extends java.lang.Object
implements java.lang.Runnable


Field Summary
(package private)  java.io.ByteArrayOutputStream bos
           
private  java.io.IOException ex
           
(package private)  java.io.InputStream is
           
 
Constructor Summary
(package private) ExecUtils.Redir(java.io.InputStream is)
           
 
Method Summary
 byte[] getResult()
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
(package private)  void setException(java.io.IOException e)
           
(package private)  void throwIfHadException()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ex

private java.io.IOException ex

is

final java.io.InputStream is

bos

final java.io.ByteArrayOutputStream bos
Constructor Detail

ExecUtils.Redir

ExecUtils.Redir(java.io.InputStream is)
Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

setException

void setException(java.io.IOException e)

throwIfHadException

void throwIfHadException()
                   throws java.io.IOException

getResult

public byte[] getResult()