Class TIMEBuilder

java.lang.Object
pixy.image.png.ChunkBuilder
pixy.image.png.TIMEBuilder
All Implemented Interfaces:
Builder<Chunk>

public class TIMEBuilder
extends ChunkBuilder
implements Builder<Chunk>
  • Constructor Details

  • Method Details

    • calendar

      public TIMEBuilder calendar​(java.util.Calendar calendar)
    • year

      public TIMEBuilder year​(int year)
    • month

      public TIMEBuilder month​(int month)
    • day

      public TIMEBuilder day​(int day)
    • hour

      public TIMEBuilder hour​(int hour)
    • minute

      public TIMEBuilder minute​(int minute)
    • second

      public TIMEBuilder second​(int second)
    • buildData

      protected byte[] buildData()
      Build the byte array representation of 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:
      buildData in class ChunkBuilder