com.j256.simplemagic.types
Class UtcDateType

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.UtcDateType
All Implemented Interfaces:
MagicMatcher

public class UtcDateType
extends LocalDateType

A 4-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
UtcDateType(EndianType endianType)
           
 
Method Summary
protected  void assisgnTimeZone(SimpleDateFormat format)
           
protected  Date dateFromExtractedValue(long val)
           
 
Methods inherited from class com.j256.simplemagic.types.LocalDateType
renderValue
 
Methods inherited from class com.j256.simplemagic.types.IntegerType
extractValueFromBytes
 
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

UtcDateType

public UtcDateType(EndianType endianType)
Method Detail

dateFromExtractedValue

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

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.