com.perforce.api
Class P4JNI

java.lang.Object
  extended by java.lang.Thread
      extended by com.perforce.api.P4JNI
All Implemented Interfaces:
java.lang.Runnable

public class P4JNI
extends java.lang.Thread

This class handles the Java Native Interface to the P4 libraries.

Version:
$Date: 2001/11/05 $ $Revision: #1 $
Author:
David Markley

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
P4JNI()
           
 
Method Summary
 java.io.BufferedReader getReader()
           
 java.io.BufferedWriter getWriter()
           
 void in_close()
           
 void in_flush()
           
 void in_write(char[] cbuf, int off, int len)
           
 boolean isPiped()
           
static boolean isValid()
           
static void main(java.lang.String[] args)
           
 int out_read(char[] cbuf, int off, int len)
           
 void run()
           
 void runCommand(java.lang.Object listener, java.lang.String[] cmd, Env environ)
           
 
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
 

Constructor Detail

P4JNI

public P4JNI()
Method Detail

isValid

public static boolean isValid()

isPiped

public boolean isPiped()

getReader

public java.io.BufferedReader getReader()

getWriter

public java.io.BufferedWriter getWriter()

runCommand

public void runCommand(java.lang.Object listener,
                       java.lang.String[] cmd,
                       Env environ)

in_write

public void in_write(char[] cbuf,
                     int off,
                     int len)

in_close

public void in_close()

in_flush

public void in_flush()

out_read

public int out_read(char[] cbuf,
                    int off,
                    int len)

run

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

main

public static void main(java.lang.String[] args)


Copyright © 2010. All Rights Reserved.