code: @Override
      @Deprecated
      public String readLine() throws IOException {
          String value = dataInput.readLine();
          if (value != null) {
              count += value.getBytes().length;
          }
          return value;
      }
docs: Please note that this isn't going to accurately count line separators, which are discarded by
  the underlying DataInput object
  This call is deprecated because you cannot accurately account for the CR/LF count
  @return
  @throws IOException