Author: simonetripodi
Date: Sat Mar 10 13:41:15 2012
New Revision: 1299202
URL: http://svn.apache.org/viewvc?rev=1299202&view=rev
Log:
removed line iterators methods (not included in the sample source)
Modified:
maven/sandbox/trunk/skins/fluido-doc/src/it/basic-doc/src/main/java/org/apache/commons/io/IOUtils.java
Modified:
maven/sandbox/trunk/skins/fluido-doc/src/it/basic-doc/src/main/java/org/apache/commons/io/IOUtils.java
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/skins/fluido-doc/src/it/basic-doc/src/main/java/org/apache/commons/io/IOUtils.java?rev=1299202&r1=1299201&r2=1299202&view=diff
==============================================================================
---
maven/sandbox/trunk/skins/fluido-doc/src/it/basic-doc/src/main/java/org/apache/commons/io/IOUtils.java
(original)
+++
maven/sandbox/trunk/skins/fluido-doc/src/it/basic-doc/src/main/java/org/apache/commons/io/IOUtils.java
Sat Mar 10 13:41:15 2012
@@ -813,80 +813,6 @@ public class IOUtils {
return list;
}
- // lineIterator
- //-----------------------------------------------------------------------
- /**
- * Return an Iterator for the lines in a <code>Reader</code>.
- * <p>
- * <code>LineIterator</code> holds a reference to the open
- * <code>Reader</code> specified here. When you have finished with the
- * iterator you should close the reader to free internal resources.
- * This can be done by closing the reader directly, or by calling
- * {@link LineIterator#close()} or {@link
LineIterator#closeQuietly(LineIterator)}.
- * <p>
- * The recommended usage pattern is:
- * <pre>
- * try {
- * LineIterator it = IOUtils.lineIterator(reader);
- * while (it.hasNext()) {
- * String line = it.nextLine();
- * /// do something with line
- * }
- * } finally {
- * IOUtils.closeQuietly(reader);
- * }
- * </pre>
- *
- * @param reader the <code>Reader</code> to read from, not null
- * @return an Iterator of the lines in the reader, never null
- * @throws IllegalArgumentException if the reader is null
- * @since Commons IO 1.2
- */
- public static LineIterator lineIterator(Reader reader) {
- return new LineIterator(reader);
- }
-
- /**
- * Return an Iterator for the lines in an <code>InputStream</code>, using
- * the character encoding specified (or default encoding if null).
- * <p>
- * <code>LineIterator</code> holds a reference to the open
- * <code>InputStream</code> specified here. When you have finished with
- * the iterator you should close the stream to free internal resources.
- * This can be done by closing the stream directly, or by calling
- * {@link LineIterator#close()} or {@link
LineIterator#closeQuietly(LineIterator)}.
- * <p>
- * The recommended usage pattern is:
- * <pre>
- * try {
- * LineIterator it = IOUtils.lineIterator(stream, "UTF-8");
- * while (it.hasNext()) {
- * String line = it.nextLine();
- * /// do something with line
- * }
- * } finally {
- * IOUtils.closeQuietly(stream);
- * }
- * </pre>
- *
- * @param input the <code>InputStream</code> to read from, not null
- * @param encoding the encoding to use, null means platform default
- * @return an Iterator of the lines in the reader, never null
- * @throws IllegalArgumentException if the input is null
- * @throws IOException if an I/O error occurs, such as if the encoding is
invalid
- * @since Commons IO 1.2
- */
- public static LineIterator lineIterator(InputStream input, String
encoding)
- throws IOException {
- Reader reader = null;
- if (encoding == null) {
- reader = new InputStreamReader(input);
- } else {
- reader = new InputStreamReader(input, encoding);
- }
- return new LineIterator(reader);
- }
-
//-----------------------------------------------------------------------
/**
* Convert the specified CharSequence to an input stream, encoded as bytes