// Path: src/main/java/com/healthmarketscience/rmiio/RmiioUtil.java
// public static void closeQuietly(Closeable closeable)
// {
//   // yes, this has been written many times before and elsewhere, but i did
//   // not want to add a dependency just for one method
//   if(closeable != null) {
//     try {
//       closeable.close();
//     } catch(IOException e) {
//       // optionally log the exception, but otherwise ignore
//       if(LOG.isDebugEnabled()) {
//         LOG.debug("Failed closing closeable", e);
//       }
//     }
//   }
// }


import java.io.BufferedReader;
import java.io.IOException;
import static com.healthmarketscience.rmiio.RmiioUtil.closeQuietly;
    while(true) {
      _next = _reader.readLine();
      if(_next != null) {
        if (_trimWhitespace) {
          _next = _next.trim();
        }
        if(_skipBlankLines && _next.length() == 0) {
          continue;
        }
      }
      return;
    }
  }

  @Override
  public boolean hasNext() throws IOException
  {
    return(_next != null);
  }

  @Override
  protected String nextImpl() throws IOException
  {
    String cur = _next;
    getNext();
    return cur;
  }

  @Override
  protected void closeImpl() {
// Path: src/main/java/com/healthmarketscience/rmiio/RmiioUtil.java
// public static void closeQuietly(Closeable closeable)
// {
//   // yes, this has been written many times before and elsewhere, but i did
//   // not want to add a dependency just for one method
//   if(closeable != null) {
//     try {
//       closeable.close();
//     } catch(IOException e) {
//       // optionally log the exception, but otherwise ignore
//       if(LOG.isDebugEnabled()) {
//         LOG.debug("Failed closing closeable", e);
//       }
//     }
//   }
// }


// Path: src/main/java/com/healthmarketscience/rmiio/LineIterator.java
import java.io.BufferedReader;
import java.io.IOException;
import static com.healthmarketscience.rmiio.RmiioUtil.closeQuietly;

    while(true) {
      _next = _reader.readLine();
      if(_next != null) {
        if (_trimWhitespace) {
          _next = _next.trim();
        }
        if(_skipBlankLines && _next.length() == 0) {
          continue;
        }
      }
      return;
    }
  }

  @Override
  public boolean hasNext() throws IOException
  {
    return(_next != null);
  }

  @Override
  protected String nextImpl() throws IOException
  {
    String cur = _next;
    getNext();
    return cur;
  }

  @Override
  protected void closeImpl() {
    closeQuietly(_reader);