|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ILineReader.IAdvisor
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 |
---|
boolean isValid(String line)
line
- A read line.
boolean
.String transform(String line)
line
- The read line to be transformed.
String
.
|
Service Activator Toolkit
Version 1.1.0 (20081206) |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001, 2008 IBM Corporation and others. All Rights Reserved.