Code example for CharBuffer

Methods: toString

		try { 
			// Convert ISO-LATIN-1 bytes in a ByteBuffer to a character 
			// ByteBuffer and then to a string. 
			// The new ByteBuffer is ready to be read. 
			CharBuffer cbuf = decoder.decode(ByteBuffer.wrap(this.assertionValue));
			String s = cbuf.toString();
			return s;
		} catch (CharacterCodingException e) {
			// almost impossible 
			// TODO write a junit test for this case 
			throw new RuntimeException(e);
	 * @return 
	public boolean isDnAttributes() { 
		return this.dnAttr;
Connect your IDE to all the code out there  Get Codota for Java