public int available() throws IOException {if (buf == null) {throw new IOException();}return buf.length - pos + in.available();}
public override int available(){if (buf == null){throw new System.IO.IOException();}return buf.Length - pos + @in.available();}