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 8
         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;

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

              // Methods 5
         public static DateBundle createFromArray(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()

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.

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.

### · 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