Results 1 to 5 of 5
Thread: Files Indexer
- 02-01-2011, 08:24 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
- 02-01-2011, 08:29 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,604
- Rep Power
- 5
Not sure what you are looking for...so I suggest you start with this:
Lesson: Basic I/O (The Java™ Tutorials > Essential Classes)
Each file type will have its own format, so if you want to parse out text you will need parsers for each type (apache open source projects contain several 3rd party libraries which might be useful to you)
- 02-01-2011, 09:54 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
I have already found the apache pdfbox, but I can't seam able to incorporate it into IDE NetBeans and use it's methods. It would hypothetically work like this:
My code would call that method
if (objFile.isFile()){
if((objFile.getName().endsWith(".pdf") || objFile.getName().endsWith(".pdf")){
// how do I call the text parser?
}
}
- How do I install PDFBox in the IDE NetBeans?
- How do I Call it's methods?
- 02-01-2011, 10:06 PM #4
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,604
- Rep Power
- 5
You need to add the jar(s) to your classpath to be able to access the library. I don't use netbeans so can't lead you through it, but I bet a quick google search will lead you in the right direction.
- 02-01-2011, 10:33 PM #5
Member
- Join Date
- Feb 2011
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
Convert avi, mpeg, wmv media files to .flv files in java code
By vinay1497 in forum New To JavaReplies: 8Last Post: 07-30-2010, 05:47 PM -
Lucene as Conditional Evaluator / Indexer?
By cuebei in forum LuceneReplies: 0Last Post: 01-11-2010, 07:36 PM -
working with files (text files)
By itaipee in forum New To JavaReplies: 1Last Post: 02-24-2009, 11:38 AM -
Lucene Indexer Encoding problem
By svirid in forum LuceneReplies: 5Last Post: 02-18-2009, 09:26 AM -
Behaving text files like binary files
By Farzaneh in forum New To JavaReplies: 2Last Post: 08-27-2008, 03:20 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks