public boolean ready() throws IOException {synchronized (lock) {if (buf == null) {throw new IOException("Reader is closed");}return (buf.length - pos > 0 || in.ready());}}

public boolean ready ( ) throws IOException { synchronized ( lock ) { if ( buf == null ) { throw new IOException ( "Reader is closed" ) ; } return ( buf . length - pos > 0 || in . ready ( ) ) ; } }
public override bool ready(){lock (@lock){if (buf == null){throw new System.IO.IOException("Reader is closed");}return (buf.Length - pos > 0 || @in.ready());}}
