processing.android.dandelion
类 ConnectedThread

java.lang.Object
  继承者 java.lang.Thread
      继承者 processing.android.dandelion.ConnectedThread
所有已实现的接口:
java.lang.Runnable

public class ConnectedThread
extends java.lang.Thread


嵌套类摘要
 
从类 java.lang.Thread 继承的嵌套类/接口
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
字段摘要
 
从类 java.lang.Thread 继承的字段
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
构造方法摘要
ConnectedThread(Client parent, BluetoothSocket socket, int bufferLength)
           
 
方法摘要
 int available()
           
 void cancel()
           
 byte[] read()
          Return a byte array of anything that's in the serial buffer.
 int readByte()
          Returns a number between 0 and 255 for the next byte that's waiting in the buffer.
 void run()
           
 void write(byte[] bytes)
           
 
从类 java.lang.Thread 继承的方法
activeCount, checkAccess, 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
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

ConnectedThread

public ConnectedThread(Client parent,
                       BluetoothSocket socket,
                       int bufferLength)
方法详细信息

run

public void run()
指定者:
接口 java.lang.Runnable 中的 run
覆盖:
java.lang.Thread 中的 run

write

public void write(byte[] bytes)

read

public byte[] read()
Return a byte array of anything that's in the serial buffer. Not particularly memory/speed efficient, because it creates a byte array on each read, but it's easier to use than readBytes(byte b[]) (see below).


readByte

public int readByte()
Returns a number between 0 and 255 for the next byte that's waiting in the buffer. Returns -1 if there was no byte (although the user should first check available() to see if things are ready to avoid this)


available

public int available()

cancel

public void cancel()


processing library Dandelion_android by Deqing Sun. (c) 2011