Search in sources :

Example 6 with ChmDirectoryListingSet

use of org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet in project tika by apache.

the class TestChmExtractor method testExtractChmEntry.

@Test
public void testExtractChmEntry() throws TikaException {
    ChmDirectoryListingSet entries = chmExtractor.getChmDirList();
    int count = 0;
    for (DirectoryListingEntry directoryListingEntry : entries.getDirectoryListingEntryList()) {
        chmExtractor.extractChmEntry(directoryListingEntry);
        ++count;
    }
    assertEquals(TestParameters.VP_CHM_ENTITIES_NUMBER, count);
}
Also used : ChmDirectoryListingSet(org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet) DirectoryListingEntry(org.apache.tika.parser.chm.accessor.DirectoryListingEntry) Test(org.junit.Test) TikaTest(org.apache.tika.TikaTest)

Aggregations

ChmDirectoryListingSet (org.apache.tika.parser.chm.accessor.ChmDirectoryListingSet)6 ChmItsfHeader (org.apache.tika.parser.chm.accessor.ChmItsfHeader)4 ChmItspHeader (org.apache.tika.parser.chm.accessor.ChmItspHeader)4 ChmLzxcControlData (org.apache.tika.parser.chm.accessor.ChmLzxcControlData)4 Before (org.junit.Before)4 ChmLzxcResetTable (org.apache.tika.parser.chm.accessor.ChmLzxcResetTable)2 DirectoryListingEntry (org.apache.tika.parser.chm.accessor.DirectoryListingEntry)2 HashSet (java.util.HashSet)1 Pattern (java.util.regex.Pattern)1 TikaTest (org.apache.tika.TikaTest)1 TikaException (org.apache.tika.exception.TikaException)1 ChmExtractor (org.apache.tika.parser.chm.core.ChmExtractor)1 Test (org.junit.Test)1