php.java.bridge
Interface IDocHandler

All Known Implementing Classes:
Request

public interface IDocHandler

Defines the parser callbacks.

Author:
jostb

Method Summary
 boolean begin(php.java.bridge.ParserTag[] tag)
          Called for each <tag arg1 ...
 void end(php.java.bridge.ParserString[] strings)
          Called for each </tag>
 void parseHeader(java.io.InputStream in)
          Called for the header
 

Method Detail

begin

boolean begin(php.java.bridge.ParserTag[] tag)
Called for each <tag arg1 ... argn>

Parameters:
tag - The tag and the args.
Returns:
true, if the parser should stop after reading the top-level end tag, false otherwise. Implements a short path: Set this to true, if you already know that the current top-level request doesn't need a reply.

end

void end(php.java.bridge.ParserString[] strings)
Called for each </tag>

Parameters:
strings - The tag and the args.
See Also:
begin(ParserTag[])

parseHeader

void parseHeader(java.io.InputStream in)
                 throws java.io.IOException
Called for the header

Parameters:
in - the input stream
Throws:
java.io.IOException