com.jniwrapper.win32.system
Class FileInformation

java.lang.Object
  extended bycom.jniwrapper.win32.system.FileInformation

public class FileInformation
extends java.lang.Object

This class provides the ability to retrive version and other informaiton from executable files.


Constructor Summary
FileInformation(java.io.File file)
           
 
Method Summary
 int getBuild()
          Returns file build number
 java.lang.String getCompanyName()
          Returns the company name.
 int getMajorVersion()
          Returns the major file version.
 int getMinorVersion()
          Returns the minor file version.
 int getRevision()
          Returns file revision number
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInformation

public FileInformation(java.io.File file)
                throws java.io.IOException
Method Detail

getMajorVersion

public int getMajorVersion()
Returns the major file version.

Returns:
major file version

getMinorVersion

public int getMinorVersion()
Returns the minor file version.

Returns:
minor file version

getBuild

public int getBuild()
Returns file build number

Returns:
file build number

getRevision

public int getRevision()
Returns file revision number

Returns:
file revision number

getCompanyName

public java.lang.String getCompanyName()
Returns the company name.

Returns:
company name

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception