PTP
Release 5.0

org.eclipse.ptp.debug.core
Class ProcessInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.eclipse.ptp.debug.core.ProcessInputStream
All Implemented Interfaces:
Closeable, org.eclipse.ptp.core.elements.listeners.IJobChildListener

public class ProcessInputStream
extends InputStream
implements org.eclipse.ptp.core.elements.listeners.IJobChildListener


Field Summary
protected  List<String> buffers
           
protected  int count
           
protected  int pos
           
 
Constructor Summary
ProcessInputStream(org.eclipse.ptp.core.elements.IPJob job, int processJobRank)
           
 
Method Summary
 void addInput(String buffer)
           
 void close()
           
 void handleEvent(org.eclipse.ptp.core.elements.events.IChangedProcessEvent e)
           
 void handleEvent(org.eclipse.ptp.core.elements.events.INewProcessEvent e)
           
 void handleEvent(org.eclipse.ptp.core.elements.events.IRemoveProcessEvent e)
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void reset(int len)
           
 void restart()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffers

protected List<String> buffers

pos

protected int pos

count

protected int count
Constructor Detail

ProcessInputStream

public ProcessInputStream(org.eclipse.ptp.core.elements.IPJob job,
                          int processJobRank)
Since:
4.0
Method Detail

addInput

public void addInput(String buffer)

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class InputStream

handleEvent

public void handleEvent(org.eclipse.ptp.core.elements.events.IChangedProcessEvent e)
Specified by:
handleEvent in interface org.eclipse.ptp.core.elements.listeners.IJobChildListener
Since:
4.0

handleEvent

public void handleEvent(org.eclipse.ptp.core.elements.events.INewProcessEvent e)
Specified by:
handleEvent in interface org.eclipse.ptp.core.elements.listeners.IJobChildListener
Since:
4.0

handleEvent

public void handleEvent(org.eclipse.ptp.core.elements.events.IRemoveProcessEvent e)
Specified by:
handleEvent in interface org.eclipse.ptp.core.elements.listeners.IJobChildListener
Since:
4.0

read

public int read()
Specified by:
read in class InputStream

read

public int read(byte[] b,
                int off,
                int len)
Overrides:
read in class InputStream

reset

public void reset(int len)

restart

public void restart()

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.