|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The IAdvisor interface defines the advice that can be given
to an ILineReader as each line is read.
IAdvisor advisor = new IAdvisor() {
public boolean isValid(String line) {
return line.charAt(0) != '#';
}
public String transform(String line) {
String value = line.trim();
value = value.toLower();
return value;
}
};
| Method Summary | |
boolean |
isValid(String line)
Query whether a read line is valid. |
String |
transform(String line)
Perform a transformation on a read line. |
| Method Detail |
public boolean isValid(String line)
line - A read line.
boolean.public String transform(String line)
line - The read line to be transformed.
String.
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.