⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testproxy.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
import java.lang.reflect.*;import java.net.*;public class TestProxy{  public class MyInvocationHandler implements InvocationHandler  {    public Object invoke (Object proxy,			  Method method,			  Object[] args)      throws Throwable    {      System.out.println (args[0]);      return null;    }  }  public static void main (String[] args)  {    try {      InvocationHandler ih = new MyInvocationHandler();            SocketOptions c = (SocketOptions)	Proxy.newProxyInstance (SocketOptions.class.getClassLoader(),				new Class[]{SocketOptions.class},				ih);            c.getOption (555);    } catch (Exception e) {      e.printStackTrace ();    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -