public class

Strlit

extends Parser<T>
java.lang.Object
   ↳ com.google.gdata.util.parser.Parser<T>
     ↳ com.google.gdata.util.parser.Strlit

Class Overview

The Strlit parser performs a case-sensitive string comparison of its str against the prefix of the parse buffer. It is not necessary for the parser to match the entire parse buffer. Parser p = new Strlit("hello"); p.parse("hello") -> matches "hello" p.parse("hello world") -> matches "hello" p.parse(" hello") -> no match, string does not start with "hello" p.parse("HELLO") -> no match

See Also

Summary

[Expand]
Inherited Constants
From class com.google.gdata.util.parser.Parser
Fields
private String str
Public Constructors
Strlit(String str)
Class constructor.
Public Methods
int parse(char[] buf, int start, int end, Object data)
Performs a case-sensitive comparison of the str member field passed to the Strlit constructor against the prefix of the parse buffer: buf[start,end).
[Expand]
Inherited Methods
From class com.google.gdata.util.parser.Parser
From class java.lang.Object

Fields

private String str

Public Constructors

public Strlit (String str)

Class constructor.

Parameters
str The String being matched against.

Public Methods

public int parse (char[] buf, int start, int end, Object data)

Performs a case-sensitive comparison of the str member field passed to the Strlit constructor against the prefix of the parse buffer: buf[start,end). Strlit.str must be a prefix of buf[start,end) for a match to occur.

Parameters
buf The character array to match against.
start The start offset of data within the character array to match against.
end The end offset of data within the character array to match against.
data User defined object that is passed to Callback.handle when an Action fires.
See Also