Commit 69aeba4e by Michael Koch Committed by Michael Koch

DatagramPacket.java (DatagramPacket): Added linebreak for 80 chars per line.

2002-09-13  Michael Koch  <konqueror@gmx.de>

	* java/net/DatagramPacket.java (DatagramPacket):
	Added linebreak for 80 chars per line.
	* java/net/JarURLConection.java
	(getInputStream, getJarEntry): Likewise.
	* java/net/SocketPermission.java
	(SocketPermission class docu, implies): Likewise.
	* java/net/URLClassLoader.java (findResources): Likewise.
	* java/net/URLConnection.java: Reindendet remark for 80 chars per line

From-SVN: r57105
parent a1c65f9f
2002-09-13 Michael Koch <konqueror@gmx.de>
* java/net/DatagramPacket.java (DatagramPacket):
Added linebreak for 80 chars per line.
* java/net/JarURLConection.java
(getInputStream, getJarEntry): Likewise.
* java/net/SocketPermission.java
(SocketPermission class docu, implies): Likewise.
* java/net/URLClassLoader.java (findResources): Likewise.
* java/net/URLConnection.java: Reindendet remark for 80 chars per line
2002-09-13 Michael Koch <konqueror@gmx.de>
* java/nio/channels/DatagramChannel.java,
java/nio/channels/ServerSocketChannel.java
......
......@@ -198,7 +198,8 @@ public final class DatagramPacket
*
* @since 1.4
*/
public DatagramPacket(byte[] buf, int offset, int length, SocketAddress address)
public DatagramPacket(byte[] buf, int offset, int length,
SocketAddress address)
throws SocketException
{
this(buf, offset, length, ((InetSocketAddress)address).getAddress(),
......
......@@ -106,7 +106,8 @@ public abstract class JarURLConnection extends URLConnection
{
// This is a JarURLConnection for the entire jar file.
InputStream jar_is = new BufferedInputStream(jarFileURLConnection.getInputStream ());
InputStream jar_is = new BufferedInputStream(
jarFileURLConnection.getInputStream ());
return new JarInputStream(jar_is);
}
......@@ -131,7 +132,8 @@ public abstract class JarURLConnection extends URLConnection
else
{
// If the jar file is not local, ...
JarInputStream zis = new JarInputStream(jarFileURLConnection.getInputStream ());
JarInputStream zis = new JarInputStream(
jarFileURLConnection.getInputStream ());
// This is hideous, we're doing a linear search...
for (ZipEntry ent = zis.getNextEntry ();
......@@ -172,7 +174,8 @@ public abstract class JarURLConnection extends URLConnection
if (jarfile == null)
{
JarInputStream zis = new JarInputStream(jarFileURLConnection.getInputStream ());
JarInputStream zis = new JarInputStream(
jarFileURLConnection.getInputStream ());
// This is hideous, we're doing a linear search for the thing...
for (ZipEntry ent = zis.getNextEntry ();
......
......@@ -87,7 +87,8 @@ import java.security.PermissionCollection;
* SocketPermission("www.urbanophile.com:80", "connect,accept");
* Can connect to or accept connections from www.urbanophile.com on port 80
* SocketPermission("localhost:1024-", "listen,accept,connect");
* Can connect to, accept from, an listen on any local port number 1024 and up.
* Can connect to, accept from, an listen on any local port number 1024
* and up.
* SocketPermission("*.edu", "connect");
* Can connect to any host in the edu domain
* SocketPermission("197.197.20.1", "accept");
......@@ -241,7 +242,8 @@ public final class SocketPermission extends Permission
* <p><ul>
* <li>The argument's hostname or IP address is equal to this object's.
* <li>The argument's canonical hostname is equal to this object's.
* <li>The argument's canonical name matches this domains hostname with wildcards
* <li>The argument's canonical name matches this domains hostname with
* wildcards
* </ul>
*
* @param perm The Permission to check against
......
......@@ -165,7 +165,8 @@ public class URLClassLoader extends SecureClassLoader
if (conn != null)
{
if (conn.getJarFile().getJarEntry (name) != null)
results.addElement (new URL(u, name, getHandler0 (u.getProtocol())));
results.addElement (new URL(u, name,
getHandler0 (u.getProtocol())));
}
else
{
......
......@@ -32,7 +32,7 @@ import gnu.gcj.io.MimeTypes;
* Written using on-line Java Platform 1.2 API Specification, as well
* as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
* Status: One guessContentTypeFrom... methods not implemented.
* getContent method assumes content type from response; see comment there.
* getContent method assumes content type from response; see comment there.
*/
public abstract class URLConnection
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment