- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/io/LineNumberInputStream.java (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/io/LineNumberInputStream.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 1 /* Copyright (C) 1998, 1999 Free Software Foundation 2 3 This file is part of libgcj. 4 5 This software is copyrighted work licensed under the terms of the 6 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for 7 details. */ 1 /* LineNumberInputStream.java -- An input stream which counts line numbers 2 Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. 3 4 This file is part of GNU Classpath. 5 6 GNU Classpath is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 9 39 package java.io; 10 40 11 41 /** 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 12 70 * @author Warren Levy <[email protected]> 13 * @date November 11, 1998.14 * @deprecated15 71 */ 16 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-317 * "The Java Language Specification", ISBN 0-201-63451-118 * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.19 * Status: Believed complete and correct. Deprecated in JDK 1.1.20 */21 22 72 public class LineNumberInputStream extends FilterInputStream 23 73 { 24 /* The current line number. */74 /* The current line number. */ 25 75 private int lineNumber = 0; 26 76 27 /* The line number when the stream was marked. */77 /* The line number when the stream was marked. */ 28 78 private int markLineNumber = 0; 29 79 30 /* Flag to indicate a '\r' was just read so that an immediately subsequent31 * '\n' can be ignored. */80 /* 81 * '\n' can be ignored. */ 32 82 private boolean justReadReturnChar = false; 33 83 84 85 86 87 88 89 34 90 public LineNumberInputStream(InputStream in) 35 91 { … … 37 93 } 38 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 39 112 public int available() throws IOException 40 113 { … … 44 117 } 45 118 119 120 121 122 123 46 124 public int getLineNumber() 47 125 { … … 49 127 } 50 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 51 152 public void mark(int readlimit) 52 153 { … … 55 156 } 56 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 57 176 public int read() throws IOException 58 177 { … … 83 202 } 84 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 85 227 public int read(byte[] b, int off, int len) throws IOException 86 228 { … … 110 252 } 111 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 112 268 public void reset() throws IOException 113 269 { … … 117 273 } 118 274 275 276 277 278 279 119 280 public void setLineNumber(int lineNumber) 120 281 { … … 122 283 } 123 284 285 286 287 288 289 290 291 292 293 294 295 124 296 public long skip(long n) throws IOException 125 297 { -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
