public int read(char[] buffer, int offset, int length) throws IOException {
   return Util.num(
           IOUtils.bridge(
               readString,
               new Value[] {
                 getHost(),
                 new SchemeString(buffer),
                 Quantity.valueOf(offset),
                 Quantity.valueOf(length)
               }))
       .intValue();
 }
 public int read() throws IOException {
   return Util.num(IOUtils.bridge(read, getHost())).intValue();
 }