NumericEntityEscaper.java
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package org.apache.commons.lang3.text.translate;
import java.io.IOException;
import java.io.Writer;
public class NumericEntityEscaper
extends CodePointTranslator
{
private final int b;
private final int c;
private final boolean d;
public NumericEntityEscaper()
{
this(0, Integer.MAX_VALUE, true);
}
private NumericEntityEscaper(int paramInt1, int paramInt2, boolean paramBoolean)
{
this.b = paramInt1;
this.c = paramInt2;
this.d = paramBoolean;
}
public static NumericEntityEscaper above(int paramInt)
{
return outsideOf(0, paramInt);
}
public static NumericEntityEscaper below(int paramInt)
{
return outsideOf(paramInt, Integer.MAX_VALUE);
}
public static NumericEntityEscaper between(int paramInt1, int paramInt2)
{
return new NumericEntityEscaper(paramInt1, paramInt2, true);
}
public static NumericEntityEscaper outsideOf(int paramInt1, int paramInt2)
{
return new NumericEntityEscaper(paramInt1, paramInt2, false);
}
public boolean translate(int paramInt, Writer paramWriter)
throws IOException
{
if (this.d)
{
if ((paramInt >= this.b) && (paramInt <= this.c)) {}
}
else {
while ((paramInt >= this.b) && (paramInt <= this.c)) {
return false;
}
}
paramWriter.write("&#");
paramWriter.write(Integer.toString(paramInt, 10));
paramWriter.write(59);
return true;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/org/apache/commons/lang3/text/translate/NumericEntityEscaper.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/