import java.nio.ByteBuffer ;
import java.nio.charset.CharacterCodingException ;
import java.nio.charset.Charset ;
import java.nio.charset.CharsetDecoder ;
class Test {
public static void main
( String [ ] args
) throws CharacterCodingException
{ ByteBuffer buffer = ByteBuffer.allocate ( 8 ) ;
buffer.putInt ( 0x80) ;
buffer.putInt ( 0x81) ;
buffer.position ( 0 ) ;
Charset charset = Charset.forName ( "IBM1098" ) ;
CharsetDecoder decoder = charset.newDecoder ( ) ;
decoder.decode ( buffer) ;
}
}
aW1wb3J0IGphdmEubmlvLkJ5dGVCdWZmZXI7CmltcG9ydCBqYXZhLm5pby5jaGFyc2V0LkNoYXJhY3RlckNvZGluZ0V4Y2VwdGlvbjsKaW1wb3J0IGphdmEubmlvLmNoYXJzZXQuQ2hhcnNldDsKaW1wb3J0IGphdmEubmlvLmNoYXJzZXQuQ2hhcnNldERlY29kZXI7CgpjbGFzcyBUZXN0IHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBDaGFyYWN0ZXJDb2RpbmdFeGNlcHRpb24gewoJCUJ5dGVCdWZmZXIgYnVmZmVyID0gQnl0ZUJ1ZmZlci5hbGxvY2F0ZSg4KTsKCQlidWZmZXIucHV0SW50KDB4ODApOwoJCWJ1ZmZlci5wdXRJbnQoMHg4MSk7CgkJYnVmZmVyLnBvc2l0aW9uKDApOwoJCUNoYXJzZXQgY2hhcnNldCA9IENoYXJzZXQuZm9yTmFtZSgiSUJNMTA5OCIpOwoJCUNoYXJzZXREZWNvZGVyIGRlY29kZXIgPSBjaGFyc2V0Lm5ld0RlY29kZXIoKTsKCQlkZWNvZGVyLmRlY29kZShidWZmZXIpOwoJfQp9Cg==