org.apache.tools.ant.taskdefsClass FixCRLF.OneLiner
- java.lang.Object
- org.apache.tools.ant.taskdefs.FixCRLF.OneLiner
- All Implemented Interfaces:
- java.util.Enumeration<java.lang.Object>
- Enclosing class:
- FixCRLF
Deprecated.since 1.7.0.
protected class FixCRLF.OneLiner extends java.lang.Object implements java.util.Enumeration<java.lang.Object>
Deprecated, the functionality has been moved to filters.FixCrLfFilter.
Constructor Summary
Constructors Constructor and Description OneLiner(java.io.File srcFile)
Deprecated.Constructor.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description void
close()
Deprecated.Close the reader.java.lang.String
getEofStr()
Deprecated.get the eof string.int
getState()
Deprecated.get the state.boolean
hasMoreElements()
Deprecated.java.lang.Object
nextElement()
Deprecated.get the next element.protected void
nextLine()
Deprecated.Move to the next line.void
setState(int state)
Deprecated.Set the state.
Constructor Detail
OneLiner
public OneLiner(java.io.File srcFile) throws BuildExceptionDeprecated.Constructor.
- Parameters:
srcFile
- the file to read.- Throws:
BuildException
- if there is an error.
Method Detail
nextLine
protected void nextLine() throws BuildExceptionDeprecated.Move to the next line.
- Throws:
BuildException
- if there is an error.
getEofStr
public java.lang.String getEofStr()Deprecated.get the eof string.
- Returns:
- the eof string.
getState
public int getState()Deprecated.get the state.
- Returns:
- the state.
setState
public void setState(int state)Deprecated.Set the state.
- Parameters:
state
- the value to use.
hasMoreElements
public boolean hasMoreElements()Deprecated.
- Specified by:
hasMoreElements
in interfacejava.util.Enumeration<java.lang.Object>
- Returns:
- true if there is more elements.
nextElement
public java.lang.Object nextElement() throws java.util.NoSuchElementExceptionDeprecated.get the next element.
- Specified by:
nextElement
in interfacejava.util.Enumeration<java.lang.Object>
- Returns:
- the next element.
- Throws:
java.util.NoSuchElementException
- if there is no more.
close
public void close() throws java.io.IOExceptionDeprecated.Close the reader.
- Throws:
java.io.IOException
- if there is an error.