/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4777124 6920545 6911753
* @summary Verify that all Charset subclasses are available through the API
*/
public class NIOCharsetAvailabilityTest {
// build the set of all Charset subclasses in the
// two known charset implementation packages
// remove the charsets that the API says are available
}
// remove the known pseudo-charsets that serve only to implement
// other charsets, but shouldn't be known to the public
// report the charsets that are implemented but not available
}
throw new RuntimeException();
}
}
throws Exception {
String s =
// Search combined system and application class path
}
if (i == -1) {
} else {
}
}
// add extensions from the extension class loader
try {
} catch (URISyntaxException e) {
}
}
}
});
try {
break;
} else {
}
}
} catch (ClassNotFoundException e) {
}
}
}
/**
* Walk through CLASSPATH and find class list from a package.
* The class names start with prefix string
* @param package name, class name prefix
* @return class list in an array of String
*/
+ ZIPSEPARATOR;
if (!f.exists())
continue;
if (f.isFile())
else if (f.isDirectory()) {
else
}
}
return classNames;
}
}
else
return midStr;
}
}
}
try {
listBuffer, prefix);
}
}
}
} catch (FileNotFoundException e) {
} catch (IOException e) {
} catch (Exception e) {
}
}
}