summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2004-03-03 22:27:24 +0000
committerMichael Koch <konqueror@gmx.de>2004-03-03 22:27:24 +0000
commit884c2eb8327900badc61ccc6ab1b0a065b773e30 (patch)
treec7d9c4be2e3af20642cf6debf4f8db9a68b64a3d
parent0ea7e597d1cfd3479c72f1c885120801f5b8f243 (diff)
downloadclasspath-884c2eb8327900badc61ccc6ab1b0a065b773e30.tar.gz
2004-03-03 Michael Koch <konqueror@gmx.de>
* gnu/java/net/PlainSocketImpl.java (SocketInputStream): Made final. (read(byte[] buf)): Removed, redundant. (SocketOutputStream): Made final. (write(byte[] buf)): Removed, redundant.
-rw-r--r--ChangeLog8
-rw-r--r--gnu/java/net/PlainSocketImpl.java39
2 files changed, 15 insertions, 32 deletions
diff --git a/ChangeLog b/ChangeLog
index c1de8f690..7f1c68daa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2004-03-03 Michael Koch <konqueror@gmx.de>
+ * gnu/java/net/PlainSocketImpl.java
+ (SocketInputStream): Made final.
+ (read(byte[] buf)): Removed, redundant.
+ (SocketOutputStream): Made final.
+ (write(byte[] buf)): Removed, redundant.
+
+2004-03-03 Michael Koch <konqueror@gmx.de>
+
* java/io/File.java: Reformated.
(isAbsolute): Simplified code.
(isHidden): Likewise.
diff --git a/gnu/java/net/PlainSocketImpl.java b/gnu/java/net/PlainSocketImpl.java
index 871efc7c5..622d594c8 100644
--- a/gnu/java/net/PlainSocketImpl.java
+++ b/gnu/java/net/PlainSocketImpl.java
@@ -369,7 +369,8 @@ public final class PlainSocketImpl extends SocketImpl
* This class contains an implementation of <code>InputStream</code> for
* sockets. It in an internal only class used by <code>PlainSocketImpl</code>.
*/
- class SocketInputStream extends InputStream
+ final class SocketInputStream
+ extends InputStream
{
/**
* The PlainSocketImpl object this stream is associated with
@@ -451,18 +452,6 @@ public final class PlainSocketImpl extends SocketImpl
}
/**
- * Reads up to buf.length bytes of data into the caller supplied buffer.
- *
- * @return The actual number of bytes read or -1 if end of stream
- *
- * @exception IOException If an error occurs.
- */
- public int read (byte[] buf) throws IOException
- {
- return read (buf, 0, buf.length);
- }
-
- /**
* Reads up to len bytes of data into the caller supplied buffer starting
* at offset bytes from the start of the buffer
*
@@ -479,8 +468,7 @@ public final class PlainSocketImpl extends SocketImpl
return bytes_read;
}
-
- } // class SocketInputStream
+ }
/**
* This class is used internally by <code>PlainSocketImpl</code> to be the
@@ -488,7 +476,8 @@ public final class PlainSocketImpl extends SocketImpl
* <code>getOutputStream method</code>. It expects only to be used in that
* context.
*/
- class SocketOutputStream extends OutputStream
+ final class SocketOutputStream
+ extends OutputStream
{
/**
* The PlainSocketImpl object this stream is associated with
@@ -542,18 +531,6 @@ public final class PlainSocketImpl extends SocketImpl
}
/**
- * Write an array of bytes to the output stream
- *
- * @param buf The array of bytes to write
- *
- * @exception IOException If an error occurs
- */
- public void write (byte[] buf) throws IOException
- {
- write (buf, 0, buf.length);
- }
-
- /**
* Writes len number of bytes from the array buf to the stream starting
* at offset bytes into the buffer.
*
@@ -565,7 +542,5 @@ public final class PlainSocketImpl extends SocketImpl
{
impl.write (buf, offset, len);
}
-
- } // class SocketOutputStream
-
-} // class PlainSocketImpl
+ }
+}