mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-5004 Fix some javadoc tag warnings, and remove unused code.
X-SVN-Rev: 20284
This commit is contained in:
parent
46fbc212fe
commit
f61a8a873d
1 changed files with 8 additions and 33 deletions
|
@ -16,7 +16,6 @@ import java.nio.charset.spi.CharsetProvider;
|
|||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.NoSuchElementException;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -27,6 +26,14 @@ import java.util.NoSuchElementException;
|
|||
*/
|
||||
public final class CharsetProviderICU extends CharsetProvider{
|
||||
|
||||
/**
|
||||
* Default constructor
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
public CharsetProviderICU() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a charset for the given charset name.
|
||||
* Implements the abstract method of super class.
|
||||
|
@ -187,38 +194,6 @@ public final class CharsetProviderICU extends CharsetProvider{
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* Class that implements the iterator for charsets
|
||||
* @draft ICU 3.6
|
||||
* @provisional This API might change or be removed in a future release.
|
||||
*/
|
||||
protected final class CharsetIterator implements Iterator {
|
||||
private String[] names;
|
||||
|
||||
private int currentIndex;
|
||||
|
||||
protected CharsetIterator(String[] strs) {
|
||||
names = strs;
|
||||
currentIndex = 0;
|
||||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
return (currentIndex < names.length);
|
||||
}
|
||||
|
||||
public Object next() {
|
||||
if (currentIndex < names.length) {
|
||||
return charsetForName(names[currentIndex++]);
|
||||
} else {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
}
|
||||
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
|
||||
private static final void putCharsets(Map map){
|
||||
int num = UConverterAlias.countAvailable();
|
||||
for(int i=0;i<num;i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue