com.jniwrapper.win32.io
Class FileTime

java.lang.Object
  extended bycom.jniwrapper.Parameter
      extended bycom.jniwrapper.Structure
          extended bycom.jniwrapper.win32.io.FileTime
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class FileTime
extends com.jniwrapper.Structure

FileTime class represents the FILETIME structure.


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
f
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
FileTime()
          Creates instance of the FileTime
FileTime(FileTime that)
          Creates instance of the FileTime from the another instance of the FileTime
FileTime(long lowDateTime, long highDateTime)
          Creates instance of the FileTime with the specified time
 
Method Summary
 java.lang.Object clone()
          Returns the copy of this instance
 void fromDate(java.util.Date date)
          Converts the specified Date value to the internal presentation of FILETIME format.
 long getHighDateTime()
          Returns high-order part of the file time.
 long getLowDateTime()
          Returns low-order part of the file time.
 void setHighDateTime(long value)
          Sets high-order part of the file time.
 void setLowDateTime(long value)
          Sets low-order part of the file time.
 java.util.Date toDate()
          Converts the value of this FILETIME structure to Java Date format.
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTime

public FileTime()
Creates instance of the FileTime


FileTime

public FileTime(long lowDateTime,
                long highDateTime)
Creates instance of the FileTime with the specified time

Parameters:
lowDateTime - The low-order part of the file time
highDateTime - The high-order part of the file time

FileTime

public FileTime(FileTime that)
Creates instance of the FileTime from the another instance of the FileTime

Parameters:
that - Instance of the FileTime
Method Detail

getLowDateTime

public long getLowDateTime()
Returns low-order part of the file time.

Returns:
low-order part of the file time.

setLowDateTime

public void setLowDateTime(long value)
Sets low-order part of the file time.

Parameters:
value - Low-order part of the file time.

getHighDateTime

public long getHighDateTime()
Returns high-order part of the file time.

Returns:
high-order part of the file time.

setHighDateTime

public void setHighDateTime(long value)
Sets high-order part of the file time.

Parameters:
value - High-order part of the file time.

toDate

public java.util.Date toDate()
Converts the value of this FILETIME structure to Java Date format.

Returns:
the converted value

fromDate

public void fromDate(java.util.Date date)
Converts the specified Date value to the internal presentation of FILETIME format.

Parameters:
date - the date to set

clone

public java.lang.Object clone()
Returns the copy of this instance

Returns:
The copy of this instances