Class TIMEReader

java.lang.Object
pixy.image.png.TIMEReader
All Implemented Interfaces:
Reader

public class TIMEReader
extends java.lang.Object
implements Reader
  • Constructor Summary

    Constructors 
    Constructor Description
    TIMEReader​(Chunk chunk)  
  • Method Summary

    Modifier and Type Method Description
    int getDay()  
    int getHour()  
    int getMinute()  
    int getMonth()  
    int getSecond()  
    int getYear()  
    void read()
    Read the tIME chunk.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getDay

      public int getDay()
    • getHour

      public int getHour()
    • getMinute

      public int getMinute()
    • getMonth

      public int getMonth()
    • getSecond

      public int getSecond()
    • getYear

      public int getYear()
    • read

      public void read() throws java.io.IOException
      Read the tIME chunk.

      The tIME chunk gives the time of the last image modification (not the time of initial image creation). It contains:

        Year:   2 bytes (complete; for example, 1995, not 95)
        Month:  1 byte (1-12)
        Day:    1 byte (1-31)
        Hour:   1 byte (0-23)
        Minute: 1 byte (0-59)
        Second: 1 byte (0-60) (yes, 60, for leap seconds; not 61, a common error)
        
      Specified by:
      read in interface Reader
      Throws:
      java.io.IOException