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

📄 net.java

📁 Java游戏高级编程!!很不错的!!!Java游戏高级编程!!很不错的
💻 JAVA
字号:
     package com.croftsoft.core.net;

     import com.croftsoft.core.lang.*;
     
     /*********************************************************************
     * <P>
     * A collection of constants and static methods to supplement
     * the java.net package.
     * <P>
     * @version
     *   1997-04-18
     * @author
     *   <A HREF="http://www.alumni.caltech.edu/~croft">David W. Croft</A>
     *********************************************************************/

     public final class  Net {
     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////

     /*********************************************************************
     * Removes everything between bracket pairs plus the brackets.
     *********************************************************************/
     public static final String  strip_HTML_tags ( String  s ) {
     //////////////////////////////////////////////////////////////////////
       String  stripped = new String ( s );
       int  index = -1;
       int  end_index;
       while ( ( index = stripped.indexOf ( '<' ) ) >= 0 ) {
         if ( ( end_index = stripped.indexOf ( '>', index ) ) >= 0 ) {
           stripped = StringLib.remove ( stripped, index, end_index );
         } else break;
       }
       return stripped;
     }

     //////////////////////////////////////////////////////////////////////
     //////////////////////////////////////////////////////////////////////
     }

⌨️ 快捷键说明

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