Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.synchrona.jred
Class IrOBEX  view IrOBEX download IrOBEX.java

java.lang.Object
  extended bycom.synchrona.jred.IrOBEX

public class IrOBEX
extends java.lang.Object

Implements the Infrared Data Association (IrDA) Object Exchange (OBEX) protocol.


Field Summary
static byte IROBEX_FLAGS
           
static byte IROBEX_VERSION
           
private  byte[] m_ayPacket
           
private  boolean m_bDone
           
private  java.io.File m_inbox
           
private  com.synchrona.util.Log m_log
           
private  int m_nPacketLength
           
private  int m_nState
           
private  java.io.ByteArrayOutputStream m_outStream
           
private  java.util.Hashtable m_params
           
static byte OPCODE_CONNECT_REQUEST
           
static byte OPCODE_DISCONNECT_REQUEST
           
static byte OPCODE_PUT_REQUEST
           
static int STATE_READY
           
static int STATE_RECEIVING
           
 
Constructor Summary
IrOBEX(com.synchrona.util.Log log)
           
 
Method Summary
private  void connectRequest(TinyTP tinyTP)
           
private  void doPut()
          Save a beamed object as a file in the inbox directory.
private  void handleConnectRequest(TinyTP tinyTP, boolean bFinal)
           
private  void handleDisconnectRequest(TinyTP tinyTP, boolean bFinal)
           
private  void handlePutRequest(TinyTP tinyTP, boolean bFinal)
           
private  void parseHeaders()
           
private  void processPacket(TinyTP tinyTP)
           
 void serviceRequest(TinyTP tinyTP, IrLMPConnection conn, byte[] ayData, int nOffset, int nLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IROBEX_FLAGS

public static final byte IROBEX_FLAGS
See Also:
Constant Field Values

IROBEX_VERSION

public static final byte IROBEX_VERSION
See Also:
Constant Field Values

OPCODE_CONNECT_REQUEST

public static final byte OPCODE_CONNECT_REQUEST
See Also:
Constant Field Values

OPCODE_DISCONNECT_REQUEST

public static final byte OPCODE_DISCONNECT_REQUEST
See Also:
Constant Field Values

OPCODE_PUT_REQUEST

public static final byte OPCODE_PUT_REQUEST
See Also:
Constant Field Values

STATE_READY

public static final int STATE_READY
See Also:
Constant Field Values

STATE_RECEIVING

public static final int STATE_RECEIVING
See Also:
Constant Field Values

m_ayPacket

private byte[] m_ayPacket

m_bDone

private boolean m_bDone

m_inbox

private java.io.File m_inbox

m_log

private com.synchrona.util.Log m_log

m_nPacketLength

private int m_nPacketLength

m_nState

private int m_nState

m_outStream

private java.io.ByteArrayOutputStream m_outStream

m_params

private java.util.Hashtable m_params
Constructor Detail

IrOBEX

public IrOBEX(com.synchrona.util.Log log)
Method Detail

serviceRequest

public void serviceRequest(TinyTP tinyTP,
                           IrLMPConnection conn,
                           byte[] ayData,
                           int nOffset,
                           int nLength)
                    throws java.lang.Exception

doPut

private void doPut()
Save a beamed object as a file in the inbox directory.


processPacket

private void processPacket(TinyTP tinyTP)

handleConnectRequest

private void handleConnectRequest(TinyTP tinyTP,
                                  boolean bFinal)

handleDisconnectRequest

private void handleDisconnectRequest(TinyTP tinyTP,
                                     boolean bFinal)

handlePutRequest

private void handlePutRequest(TinyTP tinyTP,
                              boolean bFinal)

parseHeaders

private void parseHeaders()
                   throws java.lang.Exception

connectRequest

private void connectRequest(TinyTP tinyTP)