|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Parser
The Parser interface represents the required methods to be implemented by parser utilities. These methods are the base set of methods needed to provide parsing ability.
| Method Summary | |
|---|---|
void |
close()
Closes the resource after parsing. |
Attributes |
getRecord()
Parses the next record from the resource. |
boolean |
hasMoreRecords()
True if the resource contains more records; false otherwise. |
boolean |
isReady()
Indicates whether or not the parser is ready to to return results. |
void |
open()
Opens the resource: the resource must be opened prior to parsing. |
void |
reset()
Resets the line read parser. |
void |
setCaseInsensitive(boolean caseInsensitive)
Sets the control parameter for specifying case sensitivity on creation of the Attributes object. |
void |
setResource(Resource resource)
Sets the resource to parse. |
| Method Detail |
|---|
void setResource(Resource resource)
resource - The resource to parse.void setCaseInsensitive(boolean caseInsensitive)
Attributes object.
caseInsensitive - The resource to parse.
void open()
throws IOException
IOException - if a problem is encountered while trying to open the resource.
void close()
throws IOException
IOException - if a problem is encountered while trying to close the resource.
void reset()
throws IOException
Exception - if a problem is encountered while trying to reset the resource.
IOException
boolean hasMoreRecords()
throws IOException
IOException - if a problem is encountered while trying to validate the resource is ready.
Attributes getRecord()
throws IOException
IOException - if a problem is encountered while trying to read from the resource.
boolean isReady()
throws IOException
IOException - if there is a problem with the underlying resource.
|
Spring LDAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||