Code example for CharsetDecoder

Methods: charset

0
  private NIOBufferList ch;
 
  NIOStreamDecoder(NIOBufferList ch, CharsetDecoder dec) throws IOException {
    this.ch = ch;
    this.decoder = dec;
    this.cs = dec.charset();
    this.bb = ch.read();
  } 
 
  @Override 
  public void close() throws IOException {
    synchronized (lock) {
      if (!isOpen)
        return; 
      implClose(); 
      isOpen = false;
    } 
  } 
 
  String encodingName() {
Contextual code suggestions in your IDE  Get Codota for Java