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

📄 httphelpertest.java

📁 java版ace,java程序员值得一看
💻 JAVA
字号:
package JACE.tests.Connection;import java.io.*;import JACE.Connection.*;import JACE.OS.*;public class HTTPHelperTest {  public static void main(String args[])  {    ACE.enableDebugging ();    // This is just a quick test to confirm that the Base 64     // encoding and decoding work    // (tests the example given in the HTTP 1.1 RFC)    String secret = "Aladdin:open sesame";    String encoded = HTTPHelper.EncodeBase64(secret);    System.err.println("Encoding string: \"" + secret + '\"');    System.err.println("Result: \"" + encoded + '\"');    System.err.println("Is this right? " + 		       (encoded.equals("QWxhZGRpbjpvcGVuIHNlc2FtZQ==") ? 			"Yes" : "No"));    String decoded = HTTPHelper.DecodeBase64 (encoded);    System.err.println("Decoded: \"" + decoded + '\"');    System.err.println("Is this right? " +		       (decoded.equals (secret) ? "Yes" : "No"));  }}

⌨️ 快捷键说明

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