com.j256.simplemagic.types
Class UtcLongDateType

java.lang.Object
  extended by com.j256.simplemagic.types.LongType
      extended by com.j256.simplemagic.types.IntegerType
          extended by com.j256.simplemagic.types.LocalDateType
              extended by com.j256.simplemagic.types.LocalLongDateType
                  extended by com.j256.simplemagic.types.UtcLongDateType
All Implemented Interfaces:
MagicMatcher

public class UtcLongDateType
extends LocalLongDateType

A 8-byte value interpreted as a UNIX date in UTC timezone.

Author:
graywatson

Field Summary
 
Fields inherited from class com.j256.simplemagic.types.LocalDateType
dateFormat
 
Fields inherited from class com.j256.simplemagic.types.LongType
endianConverter
 
Constructor Summary
UtcLongDateType(EndianType endianType)
           
 
Method Summary
protected  void assisgnTimeZone(SimpleDateFormat format)
           
protected  Date dateFromExtractedValue(long val)
           
 
Methods inherited from class com.j256.simplemagic.types.LocalLongDateType
extractValueFromBytes
 
Methods inherited from class com.j256.simplemagic.types.LocalDateType
renderValue
 
Methods inherited from class com.j256.simplemagic.types.LongType
convertTestString, isMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtcLongDateType

public UtcLongDateType(EndianType endianType)
Method Detail

dateFromExtractedValue

protected Date dateFromExtractedValue(long val)
Overrides:
dateFromExtractedValue in class LocalLongDateType

assisgnTimeZone

protected void assisgnTimeZone(SimpleDateFormat format)
Overrides:
assisgnTimeZone in class LocalDateType


This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.