This class copies a POI file system to a new file and compares the copy
with the original.
Property set streams are copied logically, i.e. the application
establishes a
org.apache.poi.hpsf.PropertySet of an original property
set, creates a
org.apache.poi.hpsf.MutablePropertySet from the
org.apache.poi.hpsf.PropertySet and writes the
org.apache.poi.hpsf.MutablePropertySet to the destination POI file
system. - Streams which are no property set streams are copied bit by
bit.
The comparison of the POI file systems is done logically. That means that
the two disk files containing the POI file systems do not need to be
exactly identical. However, both POI file systems must contain the same
files, and most of these files must be bitwise identical. Property set
streams, however, are compared logically: they must have the same sections
with the same attributs, and the sections must contain the same properties.
Details like the ordering of the properties do not matter.
author: Rainer Klute author: href="mailto:klute@rainer-klute.de"><klute@rainer-klute.de> version: $Id: CopyCompare.java 489730 2006-12-22 19:18:16Z bayard $ since: 2003-09-19 |