processing.android.dandelion
类 Client

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

public class Client
extends java.lang.Object
implements java.lang.Runnable


字段摘要
static boolean DEBUG
           
static java.lang.String DEBUGTAG
           
 
构造方法摘要
Client(Dandelion parent)
           
 
方法摘要
 int available()
          Returns the available number of bytes in the buffer.
 boolean connect(java.lang.String mac)
           
 void disconnect()
           
 java.lang.String[] list()
           
 int readByte()
           
 byte[] readBytes()
          Returns the whole byte buffer.
 java.lang.String readDandelion(long timeout)
           
 void run()
           
 java.lang.String sendDandelion(java.lang.String code, boolean answer)
           
 void write(byte[] buffer)
          Writes a byte[] buffer to the output stream.
 void write(int thisInt)
          Writes a String to the output stream.
 void write(java.lang.String thisString)
          Writes a String to the output stream.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

DEBUG

public static boolean DEBUG

DEBUGTAG

public static java.lang.String DEBUGTAG
构造方法详细信息

Client

public Client(Dandelion parent)
方法详细信息

list

public java.lang.String[] list()

connect

public boolean connect(java.lang.String mac)

disconnect

public void disconnect()

write

public void write(byte[] buffer)
Writes a byte[] buffer to the output stream.

参数:
buffer -

write

public void write(java.lang.String thisString)
Writes a String to the output stream.

参数:
thisString -

write

public void write(int thisInt)
Writes a String to the output stream.

参数:
buffer -

sendDandelion

public java.lang.String sendDandelion(java.lang.String code,
                                      boolean answer)
                               throws TimeoutException,
                                      java.io.IOException
抛出:
TimeoutException
java.io.IOException

readDandelion

public java.lang.String readDandelion(long timeout)
                               throws TimeoutException
抛出:
TimeoutException

readByte

public int readByte()

readBytes

public byte[] readBytes()
Returns the whole byte buffer.

返回:

available

public int available()
Returns the available number of bytes in the buffer.

返回:

run

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


processing library Dandelion_android by Deqing Sun. (c) 2011