On Thu, 2006-05-25 at 11:39 -0600, Tom Tromey wrote:
> I'm submitting this for comment before checking it in.
> 
> This implements URLConnection.guessContentTypeFromStream.  It adds a
> new VMURLConnection class to which the method defers.  The reference
> implementation of this VM class uses 'libmagic' to guess the content
> type; libmagic is part of the 'file' package on Linux systems and
> presents a nice, simple API to this functionality.
> 
> Please comment.
> 
> Tom

I'm committing the attached patch, which changes the accessibility of
VMURLConnection to match that of the other VM classes.

2006-05-26  Andrew John Hughes  <[EMAIL PROTECTED]>

        * vm/reference/java/net/VMURLConnection.java:
        Make package-private and final.

-- 
Andrew :)

Department of Computer Science
University of Sheffield
Index: vm/reference/java/net/VMURLConnection.java
===================================================================
RCS file: /cvsroot/classpath/classpath/vm/reference/java/net/VMURLConnection.java,v
retrieving revision 1.1
diff -u -3 -p -u -r1.1 VMURLConnection.java
--- vm/reference/java/net/VMURLConnection.java	27 May 2006 02:05:43 -0000	1.1
+++ vm/reference/java/net/VMURLConnection.java	27 May 2006 11:03:41 -0000
@@ -43,7 +43,7 @@ import gnu.classpath.Configuration;
 import java.io.IOException;
 import java.io.InputStream;
 
-public class VMURLConnection
+final class VMURLConnection
 {
   public static final int LENGTH = 1024;
 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to