Package pixy.image.png
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
-
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.IOExceptionRead 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)
-