|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.rfc2251.RfcFilter.FilterTokenizer
class RfcFilter.FilterTokenizer
This inner class will tokenize the components of an RFC 2254 search filter.
Field Summary | |
---|---|
private java.lang.String |
attr
|
private java.lang.String |
filter
|
private int |
filterLength
|
private int |
offset
|
Constructor Summary | |
---|---|
RfcFilter.FilterTokenizer(java.lang.String filter)
Constructs a FilterTokenizer for a filter. |
Method Summary | |
---|---|
java.lang.String |
getAttr()
Returns the current attribute identifier. |
int |
getFilterType()
Reads an RFC 2251 filter type from the filter string and returns its int value. |
void |
getLeftParen()
Reads the current char and throws an Exception if it is not a left parenthesis. |
int |
getOpOrAttr()
Reads either an operator, or an attribute, whichever is next in the filter string. |
void |
getRightParen()
Reads the current char and throws an Exception if it is not a right parenthesis. |
java.lang.String |
getValue()
Reads a value from a filter string. |
char |
peekChar()
Return the current char without advancing the offset pointer. |
private void |
readObject(java.io.ObjectInputStream objectIStrm)
Reads the serialized object from the underlying input stream. |
private void |
writeObject(java.io.ObjectOutputStream objectOStrm)
Writes the object state to a stream in standard Default Binary format This function wraps ObjectOutputStream' s defaultWriteObject() to write the non-static and non-transient fields of the current class to the stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String filter
private java.lang.String attr
private int offset
private int filterLength
Constructor Detail |
---|
public RfcFilter.FilterTokenizer(java.lang.String filter)
Method Detail |
---|
public final void getLeftParen() throws LDAPException
LDAPException
public final void getRightParen() throws LDAPException
LDAPException
public final int getOpOrAttr() throws LDAPException
Operators are &, |, or !.
If the next component is an attribute, it is read and stored in the attr field of this class which may be retrieved with getAttr() and a -1 is returned. Otherwise, the int value of the operator read is returned.
LDAPException
public final int getFilterType() throws LDAPException
LDAPException
public final java.lang.String getValue() throws LDAPException
LDAPException
public final java.lang.String getAttr()
public final char peekChar() throws LDAPException
LDAPException
private void writeObject(java.io.ObjectOutputStream objectOStrm) throws java.io.IOException
objectOStrm
- The OutputSteam where the Object need to be written
java.io.IOException
private void readObject(java.io.ObjectInputStream objectIStrm) throws java.io.IOException, java.lang.ClassNotFoundException
objectIStrm
- InputStream used to recover those objects previously serialized.
java.io.IOException
java.lang.ClassNotFoundException
|
All LDAP Classes Internal LDAP Classes |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |