Пример #1
0
  public void writeExternal(ObjectOutput out) throws IOException {
    super.writeExternal(out);

    int N = getTriplesForSubject(getObject()).size();
    out.writeInt(N);
    for (Triple t : getTriplesForSubject(getObject())) {
      out.writeObject(tripleFactory.newTriple(null, t.getProperty(), t.getValue()));
    }
  }