📄 datafilter.java
字号:
// Decompiler options: packimports(3)
// Source File Name: DataFilter.java
package com.my.www.redhat;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class DataFilter
{
String u_s;
String u_s1;
Pattern u_p;
Matcher u_m;
CharSequence u_s2;
boolean result;
public DataFilter()
{
u_s = new String("haha");
u_s1 = new String("haha");
}
public String getAll(String s)
{
String s1 = s;
s1 = ReImg(s1);
s1 = ReUrl(s1);
s1 = ReFly(s1);
s1 = ReEmail(s1);
s1 = ReBold(s1);
s1 = ReSlope(s1);
s1 = ReDownLine(s1);
s1 = ReMove(s1);
s1 = ReTxtUrl(s1);
s1 = ReTxtEmail(s1);
s1 = ReAlign(s1);
s1 = ReTxtSize(s1);
s1 = ReQuote(s1);
s1 = ReCode(s1);
s1 = ReSup(s1);
s1 = ReSub(s1);
s1 = ReDelLine(s1);
s1 = ReFliph(s1);
s1 = ReFlipv(s1);
s1 = ReShadow(s1);
s1 = ReGlow(s1);
s1 = ReBlur(s1);
s1 = ReSwf(s1);
s1 = ReRm(s1);
s1 = ReMp(s1);
s1 = ReQt(s1);
s1 = ReSk(s1);
s1 = ReSound(s1);
s1 = ReInvert(s1);
s1 = ReXray(s1);
s1 = ReLi(s1);
s1 = ReLi1(s1);
s1 = ReLi2(s1);
return s1;
}
public String replace(String s, String s1, String s2)
{
String s3 = "";
int i = s1.length();
int j;
while((j = s.indexOf(s1)) != -1)
{
s3 = s3 + s.substring(0, j);
s3 = s3 + s2;
s = s.substring(j + i);
}
s3 = s3 + s;
return s3;
}
public String ReImg(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[img\\])(.+?)(\\[\\/img\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<a href=\"" + u_m.group(2) + "\" target=\"_blank\" title=\"\u5F00\u65B0\u7A97\u53E3\u6D4F\u89C8\"><img src=" + u_m.group(2) + " border=0 onload=\"javascript:if(this.width>screen.width-333)this.width=screen.width-333;\" this.alt='\u70B9\u51FB\u67E5\u770B\u5168\u56FE'\" onmouseover=\"if(this.alt) this.style.cursor='hand';\"></a>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReInvert(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[invert\\])(.+?)(\\[\\/invert\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<table style=\"filter:invert\"><img src=" + u_m.group(2) + " border=0></table>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReXray(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[xray\\])(.+?)(\\[\\/xray\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<table style=\"filter:xray\"><img src=" + u_m.group(2) + " border=0></table>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReUrl(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[url\\])(.+?)(\\[\\/url\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<a href=" + u_m.group(2) + " target=_blank>" + u_m.group(2) + "</a>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReTxtUrl(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[url=)([^\\]]+)(\\])(.+?)(\\[\\/url\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5), "<a href=" + u_m.group(2) + " target=_blank title=" + u_m.group(4) + ">" + u_m.group(4) + "</a>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReEmail(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[email\\])(.+?)(\\[\\/email\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<a href=mailto:" + u_m.group(2) + ">" + u_m.group(2) + "</a>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReTxtEmail(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[email=)([^\\]]+)([\\]])(.+?)(\\[\\/email\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5), "<a href=mailto:" + u_m.group(2) + ">" + u_m.group(4) + "</a>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReAlign(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[align=)([^\\]]+)([\\]])(.+?)(\\[\\/align\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3) + u_m.group(4) + u_m.group(5), "<p align=" + u_m.group(2) + ">" + u_m.group(4) + "</p>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReFly(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[fly\\])(.+?)(\\[\\/fly\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<div><marquee behavior=alternate>" + u_m.group(2) + "</marquee></div>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReMove(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[move\\])(.+?)(\\[\\/move\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<div><marquee>" + u_m.group(2) + "</marquee></div>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReBold(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[b\\])(.+?)(\\[\\/b\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<b>" + u_m.group(2) + "</b>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReSlope(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[i\\])(.+?)(\\[\\/i\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<i>" + u_m.group(2) + "</i>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReDownLine(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[u\\])(.+?)(\\[\\/u\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<u>" + u_m.group(2) + "</u>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReSup(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[sup\\])(.+?)(\\[\\/sup\\])", 2);
u_m = u_p.matcher(u_s2);
result = u_m.find();
while(result)
{
u_s = replace(u_s1, u_m.group(1) + u_m.group(2) + u_m.group(3), "<sup>" + u_m.group(2) + "</sup>");
u_s1 = u_s;
u_m.find();
}
}
catch(Exception exception) { }
return u_s;
}
public String ReSub(String s)
{
u_s1 = s;
u_s = s;
u_s2 = u_s1.subSequence(0, u_s1.length());
try
{
u_p = Pattern.compile("(\\[sub\\])(.+?)(\\[\\/sub\\])", 2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -