Top Description Fields Constructors Methods
jogamp.opengl.util.pngj.chunks

public Class PngChunkTIME

extends PngChunkSingle
Class Inheritance
Imports
java.util.Calendar, jogamp.opengl.util.pngj.ImageInfo, .PngHelperInternal, .PngjException

tIME chunk.

see http://www.w3.org/TR/PNG/#11tIME

Field Summary

Modifier and TypeField and Description
private int
private int
public static final String
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
public
PngChunkTIME(final ImageInfo info)

Method Summary

Modifier and TypeMethod and Description
public void
cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.
public ChunkRaw
createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk.
public String
getAsString()

format YYYY/MM/DD HH:mm:SS

public PngChunk.ChunkOrderingConstraint
public int[]
public void
parseFromRaw(final ChunkRaw chunk)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data.
public void
setNow(final int secsAgo)

public void
setYMDHMS(final int yearx, final int monx, final int dayx, final int hourx, final int minx, final int secx)

Inherited from jogamp.opengl.util.pngj.chunks.PngChunkSingle:
allowsMultipleequalshashCode

Field Detail

dayback to summary
private int day
hourback to summary
private int hour
IDback to summary
public static final String ID
minback to summary
private int min
monback to summary
private int mon
secback to summary
private int sec
yearback to summary
private int year

Constructor Detail

PngChunkTIMEback to summary
public PngChunkTIME(final ImageInfo info)

Method Detail

cloneDataFromReadback to summary
public void cloneDataFromRead(final PngChunk other)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.cloneDataFromRead.

Makes a copy of the chunk.

This is used when copying chunks from a reader to a writer

It should normally be a deep copy, and after the cloning this.equals(other) should return true

Annotations
@Override
createRawChunkback to summary
public ChunkRaw createRawChunk()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.createRawChunk.

Creates the physical chunk. This is used when writing (serialization). Each particular chunk class implements its own logic.

Returns:ChunkRaw

A newly allocated and filled raw chunk

Annotations
@Override
getAsStringback to summary
public String getAsString()

format YYYY/MM/DD HH:mm:SS

getOrderingConstraintback to summary
public PngChunk.ChunkOrderingConstraint getOrderingConstraint()

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.getOrderingConstraint.

see ChunkOrderingConstraint

Annotations
@Override
getYMDHMSback to summary
public int[] getYMDHMS()
parseFromRawback to summary
public void parseFromRaw(final ChunkRaw chunk)

Implements abstract jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Doc from jogamp.opengl.util.pngj.chunks.PngChunk.parseFromRaw.

Parses raw chunk and fill inside data. This is used when reading (deserialization). Each particular chunk class implements its own logic.

Annotations
@Override
setNowback to summary
public void setNow(final int secsAgo)
setYMDHMSback to summary
public void setYMDHMS(final int yearx, final int monx, final int dayx, final int hourx, final int minx, final int secx)