Package com.webcodepro.shrinkit
Class TimeRec
- java.lang.Object
-
- com.webcodepro.shrinkit.TimeRec
-
public class TimeRec extends java.lang.Object
Apple IIgs Toolbox TimeRec object.
-
-
Constructor Summary
Constructors Constructor Description TimeRec()
Construct a TimeRec with the current date.TimeRec(byte[] bytes, int offset)
Construct a TimeRec from the given LENGTH byte array.TimeRec(java.io.InputStream inputStream)
Construct a TimeRec from the InputStream.TimeRec(java.util.Date date)
Construct a TimeRec with the specified date.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
java.util.Date
getDate()
Convert the TimeRec into a Java Date object.void
setDate(java.util.Date date)
Set the date.
-
-
-
Constructor Detail
-
TimeRec
public TimeRec()
Construct a TimeRec with the current date.
-
TimeRec
public TimeRec(java.util.Date date)
Construct a TimeRec with the specified date. You may pass in a null for a null date (all 0x00's).
-
TimeRec
public TimeRec(byte[] bytes, int offset)
Construct a TimeRec from the given LENGTH byte array.
-
TimeRec
public TimeRec(java.io.InputStream inputStream) throws java.io.IOException
Construct a TimeRec from the InputStream.- Throws:
java.io.IOException
-
-
Method Detail
-
setDate
public void setDate(java.util.Date date)
Set the date.
-
getDate
public java.util.Date getDate()
Convert the TimeRec into a Java Date object. Note that years 1900-1939 are assumed to be 2000-2039 per the NuFX addendum.- See Also:
- NuFX addendum
-
getBytes
public byte[] getBytes()
-
-