org.apache.tools.ant.util
Class LineTokenizer
- Cloneable, Tokenizer
public class LineTokenizer
class to tokenize the input as lines seperated
by \r (mac style), \r\n (dos/windows style) or \n (unix style)
String | getPostToken()
|
String | getToken(Reader in) - get the next line from the input
|
void | setIncludeDelims(boolean includeDelims) - attribute includedelims - whether to include
the line ending with the line, or to return
it in the posttoken
default false
|
getPostToken
public String getPostToken()
- getPostToken in interface Tokenizer
- the line ending character(s) for the current line
getToken
public String getToken(Reader in)
throws IOException
get the next line from the input
- getToken in interface Tokenizer
- the line excluding /r or /n, unless includedelims is set
setIncludeDelims
public void setIncludeDelims(boolean includeDelims)
attribute includedelims - whether to include
the line ending with the line, or to return
it in the posttoken
default false
includeDelims
- if true include /r and /n in the line