|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.util.LineTokenizer
public class LineTokenizer
class to tokenize the input as lines separated by \r (mac style), \r\n (dos/windows style) or \n (unix style)
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
LineTokenizer()
|
Method Summary | |
---|---|
java.lang.String |
getPostToken()
return the string between tokens, after the previous token. |
java.lang.String |
getToken(java.io.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 |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineTokenizer()
Method Detail |
---|
public void setIncludeDelims(boolean includeDelims)
includeDelims
- if true include /r and /n in the linepublic java.lang.String getToken(java.io.Reader in) throws java.io.IOException
getToken
in interface Tokenizer
in
- the input reader
java.io.IOException
- if an error occurs readingpublic java.lang.String getPostToken()
Tokenizer
getPostToken
in interface Tokenizer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |