net.sf.latexdraw.util
Class StreamExecReader

java.lang.Object
  extended by java.lang.Thread
      extended by net.sf.latexdraw.util.StreamExecReader
All Implemented Interfaces:
java.lang.Runnable

public class StreamExecReader
extends java.lang.Thread

Defines a thread for managing command execution. While the process is running, the log is gathered from it. This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

09/14/09

Version:
2.0.4
Author:
Arnaud BLOUIN

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  java.lang.StringBuilder log
          The read log.
private  java.io.InputStream stream
          The stream to listen.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
StreamExecReader(java.io.InputStream is)
          Default constructor.
 
Method Summary
 java.lang.String getLog()
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stream

private java.io.InputStream stream
The stream to listen.


log

private java.lang.StringBuilder log
The read log.

Constructor Detail

StreamExecReader

public StreamExecReader(java.io.InputStream is)
Default constructor.

Parameters:
is - The stream to listen.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getLog

public java.lang.String getLog()
Returns:
The read log.