Package org.apache.tools.ant.taskdefs

# Class FixCRLF.OneLiner

java.lang.Object
org.apache.tools.ant.taskdefs.FixCRLF.OneLiner

All Implemented Interfaces:
  `Enumeration<Object>`

Enclosing class:
  FixCRLF

@Deprecated protected class FixCRLF.OneLiner extends Object implements Enumeration<Object>
Deprecated.
since 1.7.0.
Deprecated, the functionality has been moved to filters.FixCrLfFilter.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OneLiner(File srcFile)`
  Deprecated.
  Constructor.

- ## Method Summary

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

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.util.Enumeration

  `asIterator`

- ## Constructor Details

  - ### OneLiner

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

- ## Method Details

  - ### nextLine

    protected void nextLine() throws BuildException
    Deprecated.
    Move to the next line.
    Throws:
      `BuildException` - if there is an error.

  - ### getEofStr

    public 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 interface `Enumeration<Object>`
    Returns:
      true if there is more elements.

  - ### nextElement

    public Object nextElement() throws NoSuchElementException
    Deprecated.
    get the next element.
    Specified by:
      `nextElement` in interface `Enumeration<Object>`
    Returns:
      the next element.
    Throws:
      `NoSuchElementException` - if there is no more.

  - ### close

    public void close() throws IOException
    Deprecated.
    Close the reader.
    Throws:
      `IOException` - if there is an error.