Simple file type recognition within existing Java app?

53 views
Skip to first unread message

billy wgbjobsearchcom

unread,
Sep 29, 2014, 6:51:33 PM9/29/14
to droid...@googlegroups.com
I need to be able to recognize the type of a file (binary or text) from within a running Java application given the file name and location. Is this possible to do with Droid? I doubt that I need all of the functionality available
with Droid at this time. Thanks for making the app available and for your help and suggestions!

Best,
Bill

Ross Spencer

unread,
Sep 29, 2014, 8:19:26 PM9/29/14
to droid...@googlegroups.com
Hi Bill,

Check out the command line version of DROID. There'll be information in the help file, but essentially there are two modes. The one you'll want outputs a comma separated values list of file name, and PUID. A little more information on The National Archives blog here: http://blog.nationalarchives.gov.uk/blog/when-900-years-old-you-reach-look-as-good-you-will-not/

Obviously you could look at a more programmatic approach. I'm sure someone more experienced at that on the list than me can help there. 

Ross


--
You received this message because you are subscribed to the Google Groups "droid-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to droid-list+...@googlegroups.com.
To post to this group, send email to droid...@googlegroups.com.
Visit this group at http://groups.google.com/group/droid-list.
For more options, visit https://groups.google.com/d/optout.

Jackson, Andy

unread,
Sep 30, 2014, 5:24:58 AM9/30/14
to droid...@googlegroups.com

Hi Bill,

 

I started building Nanite for exactly this reason. It’s a simple extraction of the core DROID format identification logic into a standalone JAR that can be integrated into other applications.  The main ‘gotcha’ is that in order to keep the core as simple as possible, it does not download the latest signature files – rather they are embedded in the JAR during the build process. This means the signatures in Nanite releases tend to lag behind DROID signature releases a bit.

 

https://github.com/openplanets/nanite/tree/master/nanite-core

 

Hope that helps.

 

Andy Jackson


 
******************************************************************************************************************
Experience the British Library online at www.bl.uk
The British Library’s latest Annual Report and Accounts : www.bl.uk/aboutus/annrep/index.html
Help the British Library conserve the world's knowledge. Adopt a Book. www.bl.uk/adoptabook
The Library's St Pancras site is WiFi - enabled
*****************************************************************************************************************
The information contained in this e-mail is confidential and may be legally privileged. It is intended for the addressee(s) only. If you are not the intended recipient, please delete this e-mail and notify the postm...@bl.uk : The contents of this e-mail must not be disclosed or copied without the sender's consent.
The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the British Library. The British Library does not take any responsibility for the views of the author.
*****************************************************************************************************************
Think before you print

billy wgbjobsearchcom

unread,
Sep 30, 2014, 10:18:21 AM9/30/14
to droid...@googlegroups.com
Thanks Andy - I'll give it a look :)

Best,
Bill

--
You received this message because you are subscribed to a topic in the Google Groups "droid-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/droid-list/BnhiaGsXUUQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to droid-list+...@googlegroups.com.

To post to this group, send email to droid...@googlegroups.com.
Visit this group at http://groups.google.com/group/droid-list.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages