php.java.bridge
Class Parser

java.lang.Object
  extended by php.java.bridge.Parser

 class Parser
extends java.lang.Object


Field Summary
(package private)  JavaBridge bridge
           
(package private) static short EOF
           
(package private)  boolean eot
           
(package private)  IDocHandler handler
           
(package private)  boolean in_dquote
           
(package private) static short IO_ERROR
           
(package private) static int MAX_ARGS
           
(package private) static short OK
           
(package private) static short PING
           
(package private) static int RECV_SIZE
           
(package private) static int SLEN
           
(package private)  short type
           
 
Constructor Summary
Parser(JavaBridge bridge, IDocHandler handler)
           
 
Method Summary
(package private)  void APPEND(byte c)
           
(package private)  void CALL_BEGIN()
           
(package private)  void CALL_END()
           
(package private)  short initOptions(java.io.InputStream in)
           
(package private)  short parse(java.io.InputStream in)
           
(package private)  void PUSH(int t)
           
 void reset()
          Reset the internal state.
(package private)  void RESET()
           
 void setBridge(JavaBridge bridge)
          Set the current bridge object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RECV_SIZE

static final int RECV_SIZE
See Also:
Constant Field Values

MAX_ARGS

static final int MAX_ARGS
See Also:
Constant Field Values

SLEN

static final int SLEN
See Also:
Constant Field Values

OK

static final short OK
See Also:
Constant Field Values

PING

static final short PING
See Also:
Constant Field Values

EOF

static final short EOF
See Also:
Constant Field Values

IO_ERROR

static final short IO_ERROR
See Also:
Constant Field Values

handler

IDocHandler handler

bridge

JavaBridge bridge

type

short type

in_dquote

boolean in_dquote

eot

boolean eot
Constructor Detail

Parser

Parser(JavaBridge bridge,
       IDocHandler handler)
Method Detail

initOptions

short initOptions(java.io.InputStream in)
            throws java.io.IOException
Throws:
java.io.IOException

RESET

void RESET()

APPEND

void APPEND(byte c)

CALL_BEGIN

void CALL_BEGIN()

CALL_END

void CALL_END()

PUSH

void PUSH(int t)

parse

short parse(java.io.InputStream in)
      throws java.io.IOException
Throws:
java.io.IOException

reset

public void reset()
Reset the internal state. Useful if you want to switch the input stream for the next packet.


setBridge

public void setBridge(JavaBridge bridge)
Set the current bridge object

Parameters:
bridge - The bridge