Code example for CharBuffer

Methods: remaining

0
	} 
	 
	@Override 
	protected CoderResult codingLoop(ByteBuffer in, CharBuffer out, boolean endOfInput){
		while(in.hasRemaining()){
			if(out.remaining() < maxOutPerIn){
				return CoderResult.OVERFLOW;
			} 
			 
			out.put((char)in.get());
		} 
		return CoderResult.UNDERFLOW;
	} 
	 
}