Results 1 to 5 of 5
  1. #1
    zakhilton is offline Member
    Join Date
    Dec 2013
    Posts
    6
    Rep Power
    0

    Default How to View contents of .ISO file in java?

    Could someone please help explain a method of viewing the contents of an .ISO in java. my searches so far have said to use the java api loopy but I cant find hardly any information on it and i have been unable to use it correctly so far. If there is no way to just view the .ISO file contents then extracting its contents and then viewing them would also be fine if anyone knows how to do that

    Any help with this problem would be greatly appreciated.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,535
    Blog Entries
    7
    Rep Power
    20

    Default Re: How to View contents of .ISO file in java?

    I'm lazy so I'd burn a CD/DVD with that ISO file and inspect the regular files (if any) instead ...

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: How to View contents of .ISO file in java?

    There are plenty of tools available for any number of operating systems that allow you to do it without burning anything (Daemon Tools for example). I'm guessing the OP wants to reinvent the wheel, this time using Java. Which is anyone's right to do.

    Loopy as mentioned in its readme is a plugin for the Apache VFS framework, which means you have to first learn how to use the Apache VFS framework before you can apply the loopy filesystem plugin.

    Commons¬*VFS - Commons Virtual File System

    I can't really recommend using VFS, I have used it in the past and its a headache you don't really need. But doing a Google for "java read iso" provides more options.

    Extracting ISO file using Java - Stack Overflow
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    zakhilton is offline Member
    Join Date
    Dec 2013
    Posts
    6
    Rep Power
    0

    Default Re: How to View contents of .ISO file in java?

    Are now I understand i didn't notice you had to have VFS framework as well, the way I have ended up extracting the .iso in my code so far is to use command line arguments and getting power iso to do it for me. My problem with this method is my programme is a university project and I am assuming I wont be allowed to use power ISO as part of my application. Thank you for the stack overflow link im checking it out now.

    PHP Code:
     String cmdArray[]={"C://Program Files//PowerISO//piso","extract","F://Microsoft Office 2010 Powerpoint x64 64bit.iso","/" ,"-od","F:/New folder"};
    		 Process p = Runtime.getRuntime().exec(cmdArray);
    		 BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
    		 
    		  String line;
    		  while ( (line = input.readLine ()) != null) {
    		    System.out.println(line);
    		  }
    		  input.close();
    		}
    		catch(Exception e) {
    		  System.out.println(e);
    		}

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,030
    Rep Power
    6

    Default Re: How to View contents of .ISO file in java?

    > i didn't notice you had to have VFS framework as well

    Why not? The three lines of text that the loopy info page has says -exactly- that!

    > Thank you for the stack overflow link im checking it out now.

    That was the first hit in google for "java read iso"...
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 0
    Last Post: 09-13-2013, 12:12 PM
  2. Replies: 2
    Last Post: 05-11-2009, 10:07 AM
  3. how to view a file from vss through java code
    By sireesha264 in forum Advanced Java
    Replies: 4
    Last Post: 07-23-2008, 12:06 PM
  4. Replies: 1
    Last Post: 07-18-2007, 11:20 PM
  5. Replies: 0
    Last Post: 07-17-2007, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •