RandomAccessFile.java (RandomAccessFile): Removed `FIXME' comment.
* java/io/RandomAccessFile.java (RandomAccessFile): Removed `FIXME' comment. (readLine): Likewise. (readFully): Implemented. From-SVN: r26859
This commit is contained in:
parent
a619dc1e20
commit
f2646f9c9a
@ -1,5 +1,10 @@
|
|||||||
1999-05-10 Tom Tromey <tromey@cygnus.com>
|
1999-05-10 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* java/io/RandomAccessFile.java (RandomAccessFile): Removed
|
||||||
|
`FIXME' comment.
|
||||||
|
(readLine): Likewise.
|
||||||
|
(readFully): Implemented.
|
||||||
|
|
||||||
* java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
|
* java/lang/natObject.cc (sync_init): Use _Jv_AllocBytesChecked.
|
||||||
|
|
||||||
* java/awt/natToolkit.cc: Added copyright header.
|
* java/awt/natToolkit.cc: Added copyright header.
|
||||||
|
@ -17,7 +17,7 @@ package java.io;
|
|||||||
|
|
||||||
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
|
||||||
* "The Java Language Specification", ISBN 0-201-63451-1
|
* "The Java Language Specification", ISBN 0-201-63451-1
|
||||||
* Status: not finished
|
* Status: Believe complete and correct to 1.1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class RandomAccessFile implements DataOutput, DataInput
|
public class RandomAccessFile implements DataOutput, DataInput
|
||||||
@ -63,7 +63,6 @@ public class RandomAccessFile implements DataOutput, DataInput
|
|||||||
}
|
}
|
||||||
|
|
||||||
fd = new FileDescriptor (fileName, fdmode);
|
fd = new FileDescriptor (fileName, fdmode);
|
||||||
// FIXME: read-only mode.
|
|
||||||
out = new DataOutputStream (new FileOutputStream (fd));
|
out = new DataOutputStream (new FileOutputStream (fd));
|
||||||
in = new DataInputStream (new FileInputStream (fd));
|
in = new DataInputStream (new FileInputStream (fd));
|
||||||
}
|
}
|
||||||
@ -115,13 +114,13 @@ public class RandomAccessFile implements DataOutput, DataInput
|
|||||||
|
|
||||||
public final void readFully (byte[] buffer) throws IOException
|
public final void readFully (byte[] buffer) throws IOException
|
||||||
{
|
{
|
||||||
// FIXME.
|
in.readFully(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void readFully (byte[] buffer, int offset, int count)
|
public final void readFully (byte[] buffer, int offset, int count)
|
||||||
throws IOException
|
throws IOException
|
||||||
{
|
{
|
||||||
// FIXME.
|
in.readFully(buffer, offset, count);
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int readInt () throws IOException
|
public final int readInt () throws IOException
|
||||||
@ -131,7 +130,6 @@ public class RandomAccessFile implements DataOutput, DataInput
|
|||||||
|
|
||||||
public final String readLine () throws IOException
|
public final String readLine () throws IOException
|
||||||
{
|
{
|
||||||
// FIXME?
|
|
||||||
return in.readLine();
|
return in.readLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user