1 16 package com.google.gwt.dev.shell.ie; 17 18 import com.google.gwt.dev.shell.LowLevel; 19 20 23 class LowLevelIE6 { 24 25 35 public static byte[] httpGet(String userAgent, String url) { 36 init(); 37 byte[][] out = new byte[1][]; 38 int status = _httpGet(userAgent, url, out); 39 if (status == 0) { 40 return out[0]; 41 } else { 42 if (System.getProperty("gwt.debugLowLevelHttpGet") != null) { 43 System.err.println("GET failed with status " + status + " for " + url); 44 } 45 return null; 46 } 47 } 48 49 public static synchronized void init() { 50 LowLevel.init(); 52 } 53 54 private static native int _httpGet(String userAgent, String url, byte[][] out); 57 58 60 63 private LowLevelIE6() { 64 } 65 } 66 | Popular Tags |