this(new HSLFSlideShowImpl(dir));
}
- /**
- * @deprecated Use {@link #PowerPointExtractor(DirectoryNode)} instead
- */
- @Deprecated
- public PowerPointExtractor(DirectoryNode dir, POIFSFileSystem fs) throws IOException {
- this(new HSLFSlideShowImpl(dir, fs));
- }
-
/**
* Creates a PowerPointExtractor, from a HSLFSlideShow
*
return _slideLocations;
}
- /**
- * Get the lookup from slide numbers to their offsets inside
- * _ptrData, used when adding or moving slides.
- *
- * @deprecated since POI 3.11, not supported anymore
- */
- @Deprecated
- public Hashtable<Integer,Integer> getSlideOffsetDataLocationsLookup() {
- throw new UnsupportedOperationException("PersistPtrHolder.getSlideOffsetDataLocationsLookup() is not supported since 3.12-Beta1");
- }
-
/**
* Create a new holder for a PersistPtr record
*/
return header;
}
- /**
- * Return image size in bytes
- *
- * @return the size of the picture in bytes
- * @deprecated Use <code>getData().length</code> instead.
- */
- public int getSize(){
- return getData().length;
- }
-
/**
* @return the 1-based index of this pictures within the pictures stream
*/
this(filesystem.getRoot());
}
- /**
- * Constructs a Powerpoint document from a specific point in a
- * POIFS Filesystem. Parses the document and places all the
- * important stuff into data structures.
- *
- * @deprecated Use {@link #HSLFSlideShowImpl(DirectoryNode)} instead
- * @param dir the POIFS directory to read from
- * @param filesystem the POIFS FileSystem to read from
- * @throws IOException if there is a problem while parsing the document.
- */
- @Deprecated
- public HSLFSlideShowImpl(DirectoryNode dir, POIFSFileSystem filesystem) throws IOException {
- this(dir);
- }
-
/**
* Constructs a Powerpoint document from a specific point in a
* POIFS Filesystem. Parses the document and places all the
this(pfilesystem.getRoot());
}
- /**
- * This constructor loads a Word document from a specific point
- * in a POIFSFileSystem, probably not the default.
- * Used typically to open embedded documents.
- *
- * @param pfilesystem The POIFSFileSystem that contains the Word document.
- * @throws IOException If there is an unexpected IOException from the passed
- * in POIFSFileSystem.
- * @deprecated Use {@link #HWPFDocument(DirectoryNode)} instead
- */
- @Deprecated
- public HWPFDocument(DirectoryNode directory, POIFSFileSystem pfilesystem) throws IOException
- {
- this(directory);
- }
-
/**
* This constructor loads a Word document from a specific point
* in a POIFSFileSystem, probably not the default.
this(fs.getRoot());
}
- @Deprecated
- public HWPFOldDocument(DirectoryNode directory, POIFSFileSystem fs)
- throws IOException {
- this(directory);
- }
public HWPFOldDocument(DirectoryNode directory)
throws IOException {
super(directory);
assertNotNull(dirB.getEntry("WordDocument"));
// Check each in turn
- doc = new HWPFDocument(dirA, fs);
+ doc = new HWPFDocument(dirA);
extractor3 = new WordExtractor(doc);
assertNotNull(extractor3.getText());
assertEquals("Sample Doc 1", extractor3.getSummaryInformation().getTitle());
assertEquals("Sample Test", extractor3.getSummaryInformation().getSubject());
- doc = new HWPFDocument(dirB, fs);
+ doc = new HWPFDocument(dirB);
extractor3 = new WordExtractor(doc);
assertNotNull(extractor3.getText());