com.phenix.pct
Class RCodeInfo

java.lang.Object
  extended by com.phenix.pct.RCodeInfo

public class RCodeInfo
extends Object

Gathers informations from r-code, as the RCODE-INFO system handle could provide. This class is based upon procrc.c from Grant Maizels (grant AT maizels DOT nu). All credits go to his work.

Since:
PCT 0.11
Version:
$Revision$
Author:
Gilles QUERRET

Nested Class Summary
static class RCodeInfo.InvalidRCodeException
           
 
Constructor Summary
RCodeInfo(File file)
           
RCodeInfo(String file)
           
 
Method Summary
static String bufferToHex(byte[] buffer, int startOffset, int length)
           
 long getCRC()
          Returns r-code CRC
 String getMD5()
           
 List getProcedures()
          Returns procedures list
 List getStrings()
          Returns strings list
 long getTimeStamp()
          Returns r-code timestamp (in milliseconds)
 long getVersion()
          Returns r-code compiler version
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCodeInfo

public RCodeInfo(String file)
          throws RCodeInfo.InvalidRCodeException,
                 IOException
Parameters:
file -
Throws:
RCodeInfo.InvalidRCodeException
IOException

RCodeInfo

public RCodeInfo(File file)
          throws RCodeInfo.InvalidRCodeException,
                 IOException
Parameters:
file -
Throws:
RCodeInfo.InvalidRCodeException
IOException
Method Detail

getCRC

public long getCRC()
Returns r-code CRC

Returns:
CRC

getVersion

public long getVersion()
Returns r-code compiler version

Returns:
Version

getTimeStamp

public long getTimeStamp()
Returns r-code timestamp (in milliseconds)

Returns:
Timestamp

getMD5

public String getMD5()

getProcedures

public List getProcedures()
Returns procedures list

Returns:
List

getStrings

public List getStrings()
Returns strings list

Returns:
List

bufferToHex

public static String bufferToHex(byte[] buffer,
                                 int startOffset,
                                 int length)

main

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


Copyright © 2003-2011 Gilles QUERRET. All Rights Reserved.