if (mygbSource.position() == myGBSource.length) { break; }
if (result.isOverflow()) { errln("Test small input buffers while decoding threw overflow exception"); }
	private void smBufDecode(CharsetDecoder decoder, String encoding) {		ByteBuffer mygbSource = ByteBuffer.wrap(getByteArray(myGBSource));		{			decoder.reset();			CharBuffer myCharTarget = CharBuffer.allocate(myUSource.length);			mygbSource.position(0);			while (true) {				int pos = mygbSource.position();				mygbSource.limit(++pos);				CoderResult result =					decoder.decode(mygbSource, myCharTarget, false);				if (result.isError()) {					errln("Test small output buffers while decoding -- FAILED");				}				if (mygbSource.position() == myGBSource.length) {					break;				}			}			if (!equals(myCharTarget, myUSource)) {				errln(					"Test small input buffers while decoding "						+ encoding						+ " TO Unicode--failed");			}		}		{			decoder.reset();			CharBuffer myCharTarget = CharBuffer.allocate(myUSource.length);			myCharTarget.position(0);			mygbSource.rewind();			while (true) {				int pos = myCharTarget.position();				myCharTarget.limit(++pos);				CoderResult result =					decoder.decode(mygbSource, myCharTarget, false);				if (result.isError()) {					errln("Test small output buffers while decoding -- FAILED");				}				if (myCharTarget.position() == myUSource.length) {					break;				}			}			if (!equals(myCharTarget, myUSource)) {				errln(					"--Test small output buffers "						+ encoding						+ " TO Unicode --FAILED");			}		}	}