BufferedReader.java, [...]: New versions from classpath.

2003-06-14  Michael Koch  <konqueror@gmx.de>

	* java/io/BufferedReader.java,
	java/io/FileOutputStream.java:
	New versions from classpath.

From-SVN: r67932
This commit is contained in:
Michael Koch 2003-06-14 05:44:38 +00:00 committed by Michael Koch
parent ef16a2989a
commit 6b4683e27c
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2003-06-14 Michael Koch <konqueror@gmx.de>
* java/io/BufferedReader.java,
java/io/FileOutputStream.java:
New versions from classpath.
2003-06-12 Andrew Haley <aph@redhat.com>
* prims.cc (catch_segv): Create exception in handler.

View File

@ -164,6 +164,9 @@ public class BufferedReader extends Reader
*/
public void mark(int readLimit) throws IOException
{
if (readLimit < 0)
throw new IllegalArgumentException();
synchronized (lock)
{
checkStatus();

View File

@ -85,7 +85,8 @@ public class FileOutputStream extends OutputStream
if (s != null)
s.checkWrite(path);
fd = new FileDescriptor (path, (append
? FileDescriptor.APPEND
? FileDescriptor.WRITE
| FileDescriptor.APPEND
: FileDescriptor.WRITE));
}