Code example for CharBuffer

Methods: rewindtoString

0
		if (this.octetsLeft > 0) {
			return false; 
		} 
 
		this.decoder.flush(this.charBuffer);
		this.charBuffer.rewind();
		this.theString = this.charBuffer.toString();
		return true; 
 
	} 
 
	protected void checkContentsLength(int tlvLength) {
		if (tlvLength < 0) {
			throw new ParserException("Cannot parse with indefinite length"); 
		} 
 
		this.octetsLeft = tlvLength;
		if (tlvLength == 0) {
			this.theString = "";
		} 
Stop searching for code, let great code find you!  Add Codota to your java IDE