Package pixy.meta.png

Class TIMEChunk

java.lang.Object
pixy.meta.Metadata
pixy.meta.png.TIMEChunk
All Implemented Interfaces:
java.lang.Iterable<MetadataEntry>, MetadataReader, Reader

public class TIMEChunk
extends Metadata
  • Constructor Details

    • TIMEChunk

      public TIMEChunk​(Chunk chunk)
    • TIMEChunk

      public TIMEChunk​(ChunkType chunkType, int year, int month, int day, int hour, int minute, int second)
  • Method Details

    • getChunk

      public Chunk getChunk()
    • getData

      public byte[] getData()
      Overrides:
      getData in class Metadata
    • getDay

      public int getDay()
    • getHour

      public int getHour()
    • getMinute

      public int getMinute()
    • getMonth

      public int getMonth()
    • getSecond

      public int getSecond()
    • getYear

      public int getYear()
    • iterator

      public java.util.Iterator<MetadataEntry> iterator()
    • read

      public void read() throws java.io.IOException
      Throws:
      java.io.IOException
    • write

      public void write​(java.io.OutputStream os) throws java.io.IOException
      Description copied from class: Metadata
      Writes the metadata out to the output stream
      Overrides:
      write in class Metadata
      Parameters:
      os - OutputStream to write the metadata to
      Throws:
      java.io.IOException