UCharacterIteratorWrapper.java
1.51 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
69
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.agl.impl;
import com.adobe.agl.text.UCharacterIterator;
import java.text.CharacterIterator;
public class UCharacterIteratorWrapper
implements CharacterIterator {
private UCharacterIterator iterator;
public UCharacterIteratorWrapper(UCharacterIterator iter) {
this.iterator = iter;
}
public char first() {
this.iterator.setToStart();
return (char)this.iterator.current();
}
public char last() {
this.iterator.setToLimit();
return (char)this.iterator.previous();
}
public char current() {
return (char)this.iterator.current();
}
public char next() {
this.iterator.next();
return (char)this.iterator.current();
}
public char previous() {
return (char)this.iterator.previous();
}
public char setIndex(int position) {
this.iterator.setIndex(position);
return (char)this.iterator.current();
}
public int getBeginIndex() {
return 0;
}
public int getEndIndex() {
return this.iterator.getLength();
}
public int getIndex() {
return this.iterator.getIndex();
}
public Object clone() {
try {
UCharacterIteratorWrapper result = (UCharacterIteratorWrapper)super.clone();
result.iterator = (UCharacterIterator)this.iterator.clone();
return result;
}
catch (CloneNotSupportedException e) {
return null;
}
}
}