コード例 #1
0
  public Object readObject() throws IOException {
    PemObject obj = readPemObject();

    if (obj != null) {
      String type = obj.getType();
      if (parsers.containsKey(type)) {
        return ((PemObjectParser) parsers.get(type)).parseObject(obj);
      } else {
        throw new IOException("unrecognised object: " + type);
      }
    }

    return null;
  }