JNative v1.3 project : see http://jnative.sf.net


org.xvolks.jnative.misc
Class FILETIME

java.lang.Object
  extended by org.xvolks.jnative.misc.basicStructures.AbstractBasicData<FILETIME>
      extended by org.xvolks.jnative.misc.FILETIME
All Implemented Interfaces:
BasicData<FILETIME>

public class FILETIME
extends AbstractBasicData<FILETIME>

FILETIME Contains a 64-bit value representing the number of 100-nanosecond intervals since January 1, 1601 (UTC). typedef struct _FILETIME { DWORD dwLowDateTime; DWORD dwHighDateTime; } FILETIME, PFILETIME; Members dwLowDateTime The low-order part of the file time. dwHighDateTime The high-order part of the file time. Remarks To convert a FILETIME structure into a time that is easy to display to a user, use the FileTimeToSystemTime function. It is not recommended that you add and subtract values from the FILETIME structure to obtain relative times. Instead, you should Copy the resulting FILETIME structure to a ULARGE_INTEGER structure using memcpy (using memcpy instead of direct assignment can prevent alignment faults on 64-bit Windows). Use normal 64-bit arithmetic on the ULARGE_INTEGER value. Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on NT FAT, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (really, the access date). On NTFS, access time has a resolution of 1 hour. Therefore, the GetFileTime function may not return the same file time information set using the SetFileTime function. Furthermore, FAT records times on disk in local time. However, NTFS records times on disk in UTC. For more information, see File Times. $Id: FILETIME.java,v 1.1 2006/06/04 21:44:58 mdenty Exp $ This software is released under the LGPL.


Field Summary
 
Fields inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData
mValue, offset, pointer
 
Constructor Summary
FILETIME()
           
 
Method Summary
 Pointer createPointer()
          Method createPointer reserves a native MemoryBlock and copy its value in it
 int getHighDateTime()
           
 int getLowDateTime()
           
 int getSizeOf()
          Method getSizeOf
 FILETIME getValueFromPointer()
          Method getValueFromPointer gets the value of this data from the native memory block
 java.lang.String toString()
           
 
Methods inherited from class org.xvolks.jnative.misc.basicStructures.AbstractBasicData
getNextByte, getNextInt, getNextLong, getNextShort, getPointer, getValue, getValueAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FILETIME

public FILETIME()
Method Detail

getLowDateTime

public int getLowDateTime()
                   throws NativeException
Throws:
NativeException

getHighDateTime

public int getHighDateTime()
                    throws NativeException
Throws:
NativeException

getValueFromPointer

public FILETIME getValueFromPointer()
Description copied from interface: BasicData
Method getValueFromPointer gets the value of this data from the native memory block

Returns:
a T

getSizeOf

public int getSizeOf()
Description copied from interface: BasicData
Method getSizeOf

Returns:
the size of this data

createPointer

public Pointer createPointer()
                      throws NativeException
Description copied from interface: BasicData
Method createPointer reserves a native MemoryBlock and copy its value in it

Returns:
a Pointer on the reserved memory
Throws:
NativeException

toString

public java.lang.String toString()
Overrides:
toString in class AbstractBasicData<FILETIME>

JNative v1.3 project : see http://jnative.sf.net