errln( "--Test small output buffers " + encoding + " From Unicode --FAILED");
errln("Test small output buffers "+ encoding+ " From Unicode failed.");
	private void smBufEncode(CharsetEncoder encoder, String encoding) {		CharBuffer mySource = CharBuffer.wrap(myUSource);		{			encoder.reset();			ByteBuffer myTarget = ByteBuffer.allocate(myGBSource.length);			mySource.position(0);            CoderResult result=null;			while (mySource.position() < myUSource.length) {				int pos = mySource.position();				mySource.limit(pos + 1);				result = encoder.encode(mySource, myTarget, false);			}			if (result.isError() || !equals(myTarget, myGBSource)) {				//System.out.println("Encode small output buffers passed");				errln(					"--Test small output buffers "						+ encoding						+ " From Unicode --FAILED");			}		}		{			encoder.reset();			ByteBuffer myTarget = ByteBuffer.allocate(myGBSource.length);			myTarget.position(0);			mySource.rewind();			while (true) {				int pos = myTarget.position();				myTarget.limit(pos + 1);				CoderResult result = encoder.encode(mySource, myTarget, true);				if (result.isOverflow()) {					continue;				}				if (mySource.position() == myUSource.length) {					myTarget.limit(myGBSource.length);					encoder.flush(myTarget);					break;				}				errln("small out buf " + pos);			}			if (!equals(myTarget, myGBSource)) {				errln(					"--Test small output buffers "						+ encoding						+ " From Unicode --FAILED");			}		}	}