Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix · OSX ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.DateBundle
java.lang.Object
   |
   +----com.jconfig.DateBundle

  Summary

public class  DateBundle
     extends java.lang.Object
{
          // Fields 12
     public static final int DATE_ACC;
     public static final int DATE_BKUP;
     public static final int DATE_CRE;
     public static final int DATE_MOD;
     public static final int DB_ARRAY_LEN;
     public static final int DB_BKUP_OFFSET;
     public static final int DB_CRE_OFFSET;
     public static final int DB_MOD_OFFSET;
     private RawDate accessDate;
     private RawDate backupDate;
     private RawDate creationDate;
     private RawDate modDate;

          // Constructors 2
     public DateBundle();
     public DateBundle(RawDate, RawDate, RawDate, RawDate);

          // Methods 7
     public static DateBundle createFromArray(int[]);
     private static RawDate makeRawDate(int[], int);

     private boolean checkDateSelector(int);
     public RawDate getRawDate(int);
     public boolean setDate(int, RawDate);
     public int[] toArray();
     public String toString();
}

Used to contain zero or more RawDate objects. You can get and set the modification, creation, backup, and access dates.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.


  Cross Reference

Returned By:
DateBundle.createFromArray(), DiskObject.getDateBundle(), DateUtilsMRJ.getFileDateBundle(), DateUtilsMRJ.getVolumeDateBundle(), DiskFileMRJ.getDateBundle(), DiskVolumeMRJ.getDateBundle(), AppUtilsNixPlain.getFileDateBundle(), AppUtilsNixPlain.getVolumeDateBundle(), DateUtilsNix.getFileDateBundle(), DateUtilsNix.getVolumeDateBundle(), DiskFileNix.getDateBundle(), DiskVolumeNix.getDateBundle(), DateUtilsMSVM.getFileDateBundle(), DateUtilsMSVM.getVolumeDateBundle(), DiskFileMSVM.getDateBundle(), DiskVolumeMSVM.getDateBundle()





  Fields

· DATE_MOD

Summary  |  Top
   public static final int DATE_MOD


· DATE_CRE

Summary  |  Top
   public static final int DATE_CRE


· DATE_BKUP

Summary  |  Top
   public static final int DATE_BKUP


· DATE_ACC

Summary  |  Top
   public static final int DATE_ACC


· DB_ARRAY_LEN

Summary  |  Top
   public static final int DB_ARRAY_LEN


· DB_MOD_OFFSET

Summary  |  Top
   public static final int DB_MOD_OFFSET

The offset of the modification date in the array returned from toArray and in the array passed to createFromArray.


· DB_CRE_OFFSET

Summary  |  Top
   public static final int DB_CRE_OFFSET

The offset of the creation date in the array returned from toArray and in the array passed to createFromArray.


· DB_BKUP_OFFSET

Summary  |  Top
   public static final int DB_BKUP_OFFSET

The offset of the backup date in the array returned from toArray and in the array passed to createFromArray.


· modDate

Summary  |  Top
   private RawDate modDate


· creationDate

Summary  |  Top
   private RawDate creationDate


· backupDate

Summary  |  Top
   private RawDate backupDate


· accessDate

Summary  |  Top
   private RawDate accessDate


  Constructors

· DateBundle

Summary  |  Top

   public DateBundle() 

Construct with all the dates set to null.



· DateBundle

Summary  |  Top
   public DateBundle(RawDate mdDate, 
                     RawDate crDate, 
                     RawDate bkDate, 
                     RawDate acDate) 

Construct from a series of RawDate objects. Any of these can be null.



  Methods

· getRawDate

Summary  |  Top
   public RawDate getRawDate(int which) 

Return the indicated date. 'which' must be one of the constants defined above. This method returns null if 'which' is out of bounds, or if the give date is null.



· setDate

Summary  |  Top
   public boolean setDate(int which, 
                          RawDate rd) 

Set the indicated date. 'which' must be one of the constants defined above. Returns true if the date was set, false otherwise.



· toArray

Summary  |  Top
   public int[] toArray() 

Puts the int fields of each date of db into offsets in the datesArray



· createFromArray

Summary  |  Top
   public static DateBundle createFromArray(int[] datesArray) 

Returns a DateBundle constructed from an int array containing the creation, modification, and backup dates. Each date takes up 6 ints: year, month, etc., and is stored at the kXXXDateOffset.



· makeRawDate

Summary  |  Top
   private static RawDate makeRawDate(int[] ary, 
                                      int offset) 

Constructs a RawDate from an int array containing the components of the date: year, month, day, hour, minute, and second, in that order.

Parameter Description
ary contains the components of the date
offset the date components will be read starting at this offset



· checkDateSelector

Summary  |  Top
   private boolean checkDateSelector(int which) 


· toString

Summary  |  Top
   public String toString() 
Overrides:
toString in class Object


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7