Subversion Repository Public Repository

litesoft

Diff Revisions 2 vs 24 for /trunk/Java/core/Server/src/org/litesoft/util/LineReaderIterator.java

Diff revisions: vs.
  @@ -105,6 +105,7 @@
105 105 * If and when the GC runs, and this object is about to be reclaimed, then
106 106 * this method is called, and if the Reader is still open, it is closed.
107 107 */
108 + @Override
108 109 public void finalize()
109 110 throws Throwable
110 111 {
  @@ -129,6 +130,7 @@
129 130 * @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Util/Iterator.html#hasNext()">java.util.Iterator#hasNext()</a>
130 131 * @see #next()
131 132 */
133 + @Override
132 134 public boolean hasNext()
133 135 {
134 136 return ((zNextLine != null) || loadNextLine());
  @@ -139,6 +141,7 @@
139 141 *
140 142 * @see <a href="http://java.sun.com/j2se/1.3/docs/api/java/lang/Util/Iterator.html#next()">java.util.Iterator#next()</a>
141 143 */
144 + @Override
142 145 public String next()
143 146 {
144 147 if ( !hasNext() )
  @@ -155,6 +158,7 @@
155 158 *
156 159 * @return A String representation of this.
157 160 */
161 + @Override
158 162 public String toString()
159 163 {
160 164 return "LineReaderIterator: " + (hasNext() ? "has More" : "at End");