Package pixy.image.png
Class TIMEBuilder
java.lang.Object
pixy.image.png.ChunkBuilder
pixy.image.png.TIMEBuilder
public class TIMEBuilder extends ChunkBuilder implements Builder<Chunk>
-
Constructor Summary
Constructors Constructor Description TIMEBuilder()
-
Method Summary
Modifier and Type Method Description protected byte[]
buildData()
Build the byte array representation of tIME chunk.TIMEBuilder
calendar(java.util.Calendar calendar)
TIMEBuilder
day(int day)
TIMEBuilder
hour(int hour)
TIMEBuilder
minute(int minute)
TIMEBuilder
month(int month)
TIMEBuilder
second(int second)
TIMEBuilder
year(int year)
-
Constructor Details
-
TIMEBuilder
public TIMEBuilder()
-
-
Method Details
-
calendar
-
year
-
month
-
day
-
hour
-
minute
-
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 classChunkBuilder
-