Does java has the option of finding correct files

hi,
using java is there a way to find out correct files(files in there original format).well i will elaborate my problem,
say like i have written a file in MS word & saved it as a doc file.
Now i will just change its extension to rtf.
can java identify this change & tell actually the file is a doc file but only the extension is changed to rtf.
plz if anyone can help me out
thanks.
cheers,
vishal j

less impossible in some ;)
THe unix program "file" implements this. You could
try to see if it has been ported to Java or if
there's a way to interface it from Java somehow.
here's the manual page if you're interested:
http://unixhelp.ed.ac.uk/CGI/man-cgi?file
From the documentation:
"File tests each argument in an attempt to classify it. There are three
sets of tests, performed in this order: filesystem tests, magic     number
tests, and language tests. The first test that succeeds causes the
file type to be printed."
The program/command does only guess the type of file, and it will fail if I e.g. create a file format which is similar to another one. (It can also fail because of lots of other reasons)
Kaj

Similar Messages

  • Just switched from safari on my imac. when using search menu safari gave me the option to "find on this page," which was an incredible help while doing research. Is there any way to have this feature using firefox?

    Just switched from safari on my imac. When using search menu in safari I had the option to "find on this page," which was an incredible help while doing research and looking for specific phrases/words. Is there any way to have this feature using firefox?

    I think Safari has the same keyboard shortcut as Firefox "command+F" on a Mac or "Ctrl+F" on Windows.
    Look in the lower left corner for the Find. There are more likely to be differences in Find Next and Find Previous in the keyboard shortcuts, but continuing at the Find bar at the bottom doesn't matter what browser you use. There is an "X" there to dismiss the Find bar. In Windows the "Esc" key will dismiss the bar if you are within the find text entry area.
    Keyboard shortcuts:
    * [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts?s=keyboard&r=0&as=s Keyboard shortcuts | How to | Firefox Help], from Mozilla very limited number of shortcuts but will show correctly for your system
    * [http://dmcritchie.mvps.org/firefox/keyboard.htm Firefox and other Browser Keyboard Shortcuts (Comparison Table)], more comprehensive but is oriented to Windows users with some guidelines for Mac and Linux users.
    <br><small>Please mark "Solved" one answer that will best help others with a similar problem -- hope this was it.</small>

  • I was wondering why the iPhone 5 has the option for a battery percentage and the iPod touch 5g doesn't? I mean... they are almost both the same thing... just the iPod does not have the phone.

    I was wondering why the iPhone 5 has the option for a battery percentage and the iPod touch 5g doesn't? I mean... they are almost both the same thing... just the iPod does not have the phone.

    One likely reason is the % battery is not that accurate because of the smaller battery capacity in the iPod compared to iPhone and iPad. Users why use a % battery app post that the % reading changes a lot.

  • HT4623 i just bought an iPad from a friend. I think is generation 1 or 2 not sure where to look for this. Bottom line, I would like to update it to iOS7. Is this possible?  It does not have the option for software update.

    i just bought an iPad from a friend. I think is generation 1 or 2 not sure where to look for this. Bottom line, I would like to update it to iOS7. Is this possible?  It does not have the option for software update.

    Identify Your iPad
    http://www.ifixit.com/Info/ID-your-iPad
    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.0.4. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    You can no longer update to iOS 6.x, or down grade the iOS.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    How to Upgrade to iOS 7
    The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
    There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
    To upgrade using Wi-Fi:
    Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
    Go into the iPad's Settings.
    Locate and tap "General" from the menu on the left.
    The second option from the top is "Software Update". Tap this to move into the update settings.
    Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
    Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
    To upgrade using iTunes:
    First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
    You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
    Now you are ready to begin the process:
    If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
    Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
    After canceling the dialog box, iTunes should automatically sync with your iPad.
    If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
    After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
    From the iPad screen, click on the Update button.
    After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
    After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
     Cheers, Tom

  • Eclipse environment does not appear the options "Web Dynpro Project"

    Hi all,
    I installed the SAP NetWeaver 7.1 Composition Environment SP03
    But in my eclipse environment does not appear the options "Web Dynpro Project" and not "Development Component Project".
    That is, I can not do a Web Dynpro project
    I have to do some more configuration in eclipse, for example, carry some plugin?
    How to do this, please help me
    Thanks,
    Vivian

    Hi,
             I think you are suffering from the problem below.
    Problem Statement:
    No Webdynpro Perspective is Visible
    only perspectives available are
        Debug
        Resource(default)
        Team Synchronizing
    How to Solve:
    There are many ways that this kind of error can occur.
    1.   It may occur due to "improper installation of NWDS"                                        
    How to Check and Resolve :    Is NWDS is displayed in intalled list in Control panel? If 'yes' then it is properly installed. If 'No' then reinstallation is needed.
    2.  It may occur due to "installation of Skeleton alone"
    How to Check:
                                      you can check if your installation includes Web Dynpro by selecting
    Help->Software Updates->Manage Configurations.
    When installing Developer studio 7.1 you only get the bare eclipse installation (Skeleton). You have to add web dynpro and all, after the initial install is complete.
    The installer installs the kernel of the Developer Studio. The kernel contains Eclipse and a few SAP additions, but is not equipped with the SAP features necessary for the Composition Environment. In order to install the required SAP features you have to install the SAP features.
               How to Resolve:
    Updating the NWDS software will resolve the problem.
    Go to Help->Software Updates->Find and Install. This will install the default SAP plugins that came with your NWDS CE 7.1 setup source and also the additional updates that are needed.

  • Does firefox has the clip feature that internet explorer has for clipping a article and pasting it to a document.

    internet explorer (my os is win 8) has a feature that allows the user to clip and article and paste it to a document, does mozilla has the add on comparable to this, if so where is it and how do I acquire it.

    Could you describe where you find this in the menu in IE and what it's called?
    Traditionally, to copy and paste the contents of a web page, you first select the portion of the page you want, then copy using Ctrl+c (or right-click > Copy), then switch over to the receiving application and paste using Ctrl+v (or right-click > Paste).
    However, there might be an add-on that gives you a better result depending on what you're looking for.

  • HP8610 does not offer the option to reverse print order

    The HP8610 does not offer the option to reverse print order. I downloaded the HP8600 driver and was able to do this. Will the driver for the HP8610 be updated to include this anytime soon?

    Apple also need to be told about such issues:
    http://www.apple.com/feedback/appletv.html
    I've found that the Music Search function has been crippled in recent months - it no longer dynamically updates the list on the right as you enter letters.

  • Does Firefox has this option (which I may not know) to click on my bookmark, link, etc. where to open a new tab without doing this right-click, it is aggravating?

    Hello, I would like to use Firefox as my default browser, but the reason I still use the old Netscape Navigator is that that clicking on my bookmarks Firefox is not opening new tab. Does Firefox has this option (which I may not know) to click on my bookmark, link, etc. where to open a new tab without doing this right-click, it is aggravating?

    Install the addon
    Open Bookmarks in New Tab 0.1.2010043001.
    https://addons.mozilla.org/en-US/firefox/addon/open-bookmarks-in-new-tab/
    Restart on installation.

  • Does acrobat has any option to read pdf content objects(stamps, layers, images etc) without using pl

    Does acrobat has any option to read pdf content objects(stamps, layers, images etc) without using plug-in in c#.net ?
    My requirement is read a pdf file and extract all the page objects(stampls, layers and images) along with its coordinates. Is it possible to get without using plug-ins in c#.net ?
    Please hlep me.

    These are very different things.
    JavaScript has some access to layers (called OCG). Layers are just names and have no coordinates to retrieve.
    Stamps may be annotations; there is some minimal access to these too I think. It may be hard to identify what is, and is not, a stamp even with a plug-in.
    Images are part of the actual page contents, and are only accessible to plug-ins.

  • Brand new Mac, had to erase drive through disk utility as time machine back up failed. Now disk utility only has the option to install Mountain Lion which my Mac won't allow. Anyone any ideas as my Mac won't load anything up but disc utility!

    Brand new Mac, had to erase drive through disk utility as time machine back up failed on initial setup, USB cable popped out Now can only access disk utility as won't load to log in screen. The only has the option in disc utility is to re-install Mountain Lion which my Mac won't allow or loading another time machine back up but after an hour of it processing, that didn't resolve the issue either! The time machine back up is the latest back up of my Mac Book Pro which was using OS X Maverix. I'm guessing I'm going to have to take my Mac to the store but that would be a hassle so does anyone have any ideas?

    Follow this guide using another Mac.
    Insert your newly created Mavericks USB into you Mac, press the power button and then hold down 'option,' until it gives you an option to boot from the USB. You will then be able to erase the internal disk with Disk Utility and reinstall Mavericks straight after.
    After that you should be able to use Migration Assistant to restore your applications and user data.

  • I want to restore the secret question and I does not have the option of sending e-mail to restore

    I want to restore the secret question and I does not have the option of sending e-mail to restore

    Go here, find your country and follow the directions to contact Apple for help.
    http://support.apple.com/kb/HT5699

  • Why is How I Met Your Mother Season 3 "Episode Only" when every other season has the option to buy the entire season?

    Why is How I Met Your Mother Season 3 "Episode Only" when every other season has the option to buy the entire season?
    Seems rather unfair to pay nearly £40 for each individual episode when each other season has the option to buy the entire season for £9.99 (including seasons after season 3)

    Just recieved this from iTunes Store Support:
    Missy here. I am a Senior Advisor from the iTunes Store. Your request has been escalated to me by Irish.
    I understand you have some concerns regarding the numbering of the episodes for "How I Met Your Mother, Season 3". I can certainly appreciate your concerns and I'm happy to offer some additional information about this.
    Episode 17, is a music video that accompanies the episode "Sandcastles In the Sand" however it is not available on the UK iTunes Store. This is why 17 has been omitted.
    Apple is constantly expanding the iTunes Store's catalog of music, audiobooks, videos, and movies. To ensure that your request is considered, please submit it through the Request page at:
    http://www.apple.com/feedback/itunes.html
    This solves the issue. I have filed a request to get the music video added to the iTunes which hopefully it does, completing Season 3 of How I Met Your Mother.

  • Windows has the following information about this file type. This page will help you find software needed to open your file. Cannot get SEO quale loaded please help

    I cannot download as I keep getting this when I try
    Windows has the following information about this file type. This page will help you find software needed to open your file.
    File Type: Firefox Browser Extension
    File Extension: .xpi
    Description: Compressed archive of primary file installation components – used by the Mozilla installer script to setup and install various applications. You may search the following Web site for related software and information:
    Please advise how I go about downloading

    despite the workaround, it doesn't fix the real problem. It shouldn't be a huge deal for adobe to add support for multiple svn versions. Dreamweaver is the first tool i've used that works with svn that doesn't support several types of svn meta data. If they're going to claim that Dreamweaver supports svn is should actually support svn, the current version, not a version several years old. This should have been among the first patches released, or at least after snow leopard came out (and packaged with it the current version of svn).
    does anyone know if the code that handles meta data formatting is something that is human readable, or where it might be, or is it in compiled code.
    i signed up for the forums, for the sole purpose of being able to vent about this very frustrating and disappointing situation.

  • I have a gen 3 ipod and can't get it into disk mode.  In itunes it does not have the option and I cant figure out how to do it on the ipod touch itself.  Any ideas?

    I have a gen 3 ipod and can't get it into disk mode.  In itunes it does not have the option and I cant figure out how to do it on the ipod touch itself.  Any ideas?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • I download iOS 7 one song does not delete. I will swipe but it does not give the option to delete

    I downloaded iOS 7 and one song  does not give the option to delete

    Same problem.  Certain songs simply cannot be deleted.   I'd love someone to acknowledge it's a bug.

Maybe you are looking for