* @exception NoPropertySetStreamException if the application tries to
* create a property set from a POI document stream that is not a property
* set stream.
+ * @throws UnsupportedEncodingException
* @exception IOException if any I/O exception occurs.
*/
private static boolean equal(final DirectoryEntry d1,
* @exception NoPropertySetStreamException if the application tries to
* create a property set from a POI document stream that is not a property
* set stream.
+ * @throws UnsupportedEncodingException
* @exception IOException if any I/O exception occurs.
*/
private static boolean equal(final DocumentEntry d1, final DocumentEntry d2,
* everything unmodified to the destination POI filesystem. Property set
* streams are copied by creating a new {@link PropertySet} from the
* original property set by using the {@link
- * MutablePropertySet#MutablePropertySet(PropertySet) constructor.</p>
+ * MutablePropertySet#MutablePropertySet(PropertySet)} constructor.</p>
*/
static class CopyFile implements POIFSReaderListener
{
*
* @param dstName The name of the disk file the destination POIFS is to
* be written to.
- * @throws FileNotFoundException
*/
public CopyFile(final String dstName)
{
* @param path The file's path in the POI filesystem.
* @param name The file's name in the POI filesystem.
* @param ps The property set to write.
+ * @throws WritingNotSupportedException
+ * @throws IOException
*/
public void copy(final POIFSFileSystem poiFs,
final POIFSDocumentPath path,
*
* @param poiFs The POI filesystem to write to.
* @param path The source document's path.
+ * @param name The source document's name.
* @param stream The stream containing the source document.
+ * @throws IOException
*/
public void copy(final POIFSFileSystem poiFs,
final POIFSDocumentPath path,
* summary information property set and copies everything else unmodified
* to the destination POI filesystem. Since an instance of it is registered
* as a {@link POIFSReader} its method {@link
- * #processPOIFSReaderEvent(POIFSReaderEvent) is called for each document in
- * the origin POIFS.</p>
+ * #processPOIFSReaderEvent(POIFSReaderEvent)} is called for each document
+ * in the origin POIFS.</p>
*/
static class ModifySICopyTheRest implements POIFSReaderListener
{
*
* @param dstName The name of the disk file the destination POIFS is to
* be written to.
- * @throws FileNotFoundException
*/
public ModifySICopyTheRest(final String dstName)
{
* @param name The original (and destination) stream's name.
* @param si The property set. It should be a summary information
* property set.
+ * @throws IOException
+ * @throws WritingNotSupportedException
*/
public void editSI(final POIFSFileSystem poiFs,
final POIFSDocumentPath path,
final String name,
final PropertySet si)
- throws WritingNotSupportedException, IOException
+ throws WritingNotSupportedException, IOException
+
{
/* Get the directory entry for the target stream. */
final DirectoryEntry de = getPath(poiFs, path);
* @param path The file's path in the POI filesystem.
* @param name The file's name in the POI filesystem.
* @param ps The property set to write.
+ * @throws WritingNotSupportedException
+ * @throws IOException
*/
public void copy(final POIFSFileSystem poiFs,
final POIFSDocumentPath path,
*
* @param poiFs The POI filesystem to write to.
* @param path The source document's path.
+ * @param name The source document's name.
* @param stream The stream containing the source document.
+ * @throws IOException
*/
public void copy(final POIFSFileSystem poiFs,
final POIFSDocumentPath path,