Alle FNIS Annotation eines Dokumentes (n-Seiten) sind immer in einem Datenobjekt (XML-Format) zusammengefasst.

Codebeispiel:

final DefaultReaderControls controls = new DefaultReaderControls();

// AnnotationCustomizer-Implementation, wird hier fürs setzen der
// Berechtigung benutzt
final AnnotationCustomizer annotationCustomizer = new AnnotationCustomizer() {
	@Override
	public void customize(Annotation a) {
		a.getPermissions().getPermissions()
				.add(IndividualAnnotationPermission.DENY.CHANGE);
	}
};
controls.getSettings(FNISAnnotationReaderSettings.class)
		.setAnnotationCustomizer(annotationCustomizer);

final URL profileUrl = FNISAnnotationReader.class
		.getResource("/filenet-is-annotation-profile.xml");
final AnnotationProfile profile = AnnotationProfile
		.load(profileUrl);
controls.getSettings(FNISAnnotationReaderSettings.class)
		.setAnnotationProfile(profile);

Reader reader = new Reader();
// Document-Instanz setzen
reader.setDocument(<<Document-Instanz>>);
// Startseitenindex setzen
reader.setTargetIndex(0);
// ReaderControls setzen
reader.setReaderControls(controls);
// Spezifisches Format setzen
reader.setFormat(new FNISAnnotationFormat());
reader.read(<<Annotation-Inputstream>>);
[jadice® document platform 5 Dokumentation. Erstellungsdatum: 2012-01-19]
loading table of contents...