public int available() throws IOException {
   return line.available();
 }