org.apache.tools.ant.taskdefs

Class FixCRLF.OneLiner

Enclosing Class:
FixCRLF
Implemented Interfaces:
Enumeration

protected class FixCRLF.OneLiner
extends java.lang.Object
implements Enumeration

Deprecated, the functionality has been moved to filters.FixCrLfFilter.

Constructor Summary

OneLiner(File srcFile)
Constructor.

Method Summary

void
close()
Close the reader.
String
getEofStr()
get the eof string.
int
getState()
get the state.
boolean
hasMoreElements()
Object
nextElement()
get the next element.
protected void
nextLine()
Move to the next line.
void
setState(int state)
Set the state.

Constructor Details

OneLiner

public OneLiner(File srcFile)
            throws BuildException
Constructor.
Parameters:
srcFile - the file to read.
Throws:
BuildException - if there is an error.

Method Details

close

public void close()
            throws IOException
Close the reader.

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()
            throws NoSuchElementException
get the next element.
Returns:
the next element.

nextLine

protected void nextLine()
            throws BuildException
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.