Package org.apache.tools.ant.util
Class LineTokenizer
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.util.LineTokenizer
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- Tokenizer
 
 public class LineTokenizer extends ProjectComponent implements Tokenizer class to tokenize the input as lines separated by \r (mac style), \r\n (dos/windows style) or \n (unix style)- Since:
- Ant 1.6
 
- 
- 
Field Summary- 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description LineTokenizer()
 - 
Method SummaryModifier and Type Method Description java.lang.StringgetPostToken()return the string between tokens, after the previous token.java.lang.StringgetToken(java.io.Reader in)get the next line from the inputvoidsetIncludeDelims(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.ProjectComponentclone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setIncludeDelimspublic void setIncludeDelims(boolean includeDelims) attribute includedelims - whether to include the line ending with the line, or to return it in the posttoken default false- Parameters:
- includeDelims- if true include /r and /n in the line
 
 - 
getTokenpublic java.lang.String getToken(java.io.Reader in) throws java.io.IOExceptionget the next line from the input
 - 
getPostTokenpublic java.lang.String getPostToken() Description copied from interface:Tokenizerreturn the string between tokens, after the previous token.- Specified by:
- getPostTokenin interface- Tokenizer
- Returns:
- the line ending character(s) for the current line
 
 
- 
 
-