org.apache.tools.ant.taskdefs

Class FixCRLF.OneLiner

protected class FixCRLF.OneLiner extends Object implements Enumeration

Deprecated: since 1.7.0.

Deprecated, the functionality has been moved to filters.FixCrLfFilter.
Constructor Summary
OneLiner(File srcFile)
Constructor.
Method Summary
voidclose()
Close the reader.
StringgetEofStr()
get the eof string.
intgetState()
get the state.
booleanhasMoreElements()
ObjectnextElement()
get the next element.
protected voidnextLine()
Move to the next line.
voidsetState(int state)
Set the state.

Constructor Detail

OneLiner

public OneLiner(File srcFile)
Constructor.

Parameters: srcFile the file to read.

Throws: BuildException if there is an error.

Method Detail

close

public void close()
Close the reader.

Throws: IOException if there is an error.

getEofStr

public String getEofStr()
get the eof string.

Returns: the eof string.

getState

public int getState()
get the state.

Returns: the state.

hasMoreElements

public boolean hasMoreElements()

Returns: true if there is more elements.

nextElement

public Object nextElement()
get the next element.

Returns: the next element.

Throws: NoSuchElementException if there is no more.

nextLine

protected void nextLine()
Move to the next line.

Throws: BuildException if there is an error.

setState

public void setState(int state)
Set the state.

Parameters: state the value to use.