Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Conversation Between Admin and nitin

1 Visitor Messages

  1. import java.io.IOException;
    import java.util.Scanner;
    public class SearchMain {

    Scanner s;
    String directoryName;

    public SearchMain()
    s=new Scanner(System.in);

    public String getDirectoryName()
    System.out.println("Enter Directory Name::");
    directoryName = s.next();
    return directoryName;

    public static void main(String args[])
    SearchMain searchObj = new SearchMain();
    FileOperation fileObj = new FileOperation();
    fileObj.writeTOFile(fileObj.createFilesInfo(fileOb j.getFileNames(searchObj.getDirectoryName())));

    // pf.parseDoc("D:\\firstday\\Documents\\solr ebook.pdf");
    // pf.parseDoc("D:\\firstday\\Documents\\xiaoxiaoHado op.pptx");
    //pf.parseDoc("D:\\firstday\\Documents\\images.png") ; //not supported using autodetectParser
    //pf.parseDoc("D:\\firstday\\Documents\\index.jpg"); //not supported using autodetectParser
    //pf.imageExtract("D:\\firstday\\Documents\\index.jp g"); //not supported using autodetectParser
    // pf.parseDoc("D:\\firstday\\Documents\\ArrayListDem o.class");
    //pf.parseDoc("D:\\firstday\\Documents\\Book12.xlsx" );
    // pf.parseDoc("D:\\firstday\\Documents\\books.csv");
    // pf.parseDoc("D:\\firstday\\Documents\\index.html") ;
    //pf.parseDoc("D:\\firstday\\Documents\\sample.rtf") ;
    //pf.parseDoc("D:\\firstday\\Documents\\Sample_proj. doc");
    //pf.parseDoc("D:\\firstday\\Documents\\xmldoc.xml") ;
    //pf.parseDoc("D:\\firstday\\Documents\\commons-io-2.4-bin.zip"); //exception text limit
    // pf.parseDoc("D:\\firstday\\Documents\\test1.zip");

Showing Visitor Messages 1 to 1 of 1