Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -47,14 +47,17 @@ final class VMURLConnection
|
|||
{
|
||||
public static final int LENGTH = 1024;
|
||||
|
||||
// private static native void init();
|
||||
|
||||
private static String guessContentTypeFromBuffer(byte[] b, int valid)
|
||||
static
|
||||
{
|
||||
// FIXME - write real implementation
|
||||
return null;
|
||||
if (Configuration.INIT_LOAD_LIBRARY)
|
||||
System.loadLibrary("javanet");
|
||||
init();
|
||||
}
|
||||
|
||||
private static native void init();
|
||||
|
||||
private static native String guessContentTypeFromBuffer(byte[] b, int valid);
|
||||
|
||||
/**
|
||||
* This is called from URLConnection to guess the mime type of a
|
||||
* stream. This method may return null to indicate that it could
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue