Tika Class File ExtractionTo extract .class file, Tika provides ClassParser class. This class is used to extract content and metadata from the .class file. It is located into the org.apache.tika.parser.asm package and contains various constructors and methods that are tabled below. Tika ClassParser Constructor
Tika ClassParser Methods
Tika ClassParser ExampleIn this example, we are extracting content and metadata from a .class file. See the example. We have a class First.class that contains the following code. Output: (after extracting First.class file) public synchronized class First { void First(); public static void main(String[]); } Document Metadata: dc:title: First resourceName: First.class title: First
Next TopicTika Extracting Jar File
|