code: public int getInteger() throws IOException {
          if (buffer.read() != DerValue.tag_Integer) {
              throw new IOException("DER input, Integer tag error");
          }
          return buffer.getInteger(getLength(buffer));
      }
docs: Get an integer from the input stream as an integer.
  
  @return the integer held in this DER input stream.