3261N/A * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. 964N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 964N/A * This code is free software; you can redistribute it and/or modify it 964N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 964N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 964N/A * This code is distributed in the hope that it will be useful, but WITHOUT 964N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 964N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 964N/A * version 2 for more details (a copy is included in the LICENSE file that 964N/A * accompanied this code). 964N/A * You should have received a copy of the GNU General Public License version 964N/A * 2 along with this work; if not, write to the Free Software Foundation, 964N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 4150N/A @bug 6636323 6636319 7040220 964N/A @summary Test if StringCoding and NIO result have the same de/encoding result 964N/A for (
int i =
0; i <
0x10000; i++) {
964N/A for (
int i =
0; i <
0x100; i++) {
964N/A for (
int i =
0; i <
10; i++) {
964N/A //System.out.printf(" blen=%d, clen=%d%n", blen, clen); 964N/A //add a pair of surrogates 964N/A //encode unmappable surrogates