package gov.nasa.gsfc.spdf.cdfj; import java.nio.*; public class GDR { ByteBuffer record = ByteBuffer.allocate(8 + 4 + 8 + 8 + 8 + 8 + 4 + 4 + 4 + 4 + 4 + 8 + 4 + 4 + 4); protected long position; long zVDRHead; long aDRHead; long eof; int numAttr; int nzVars; int lastLeapSecondId; public void setZVDRHead(long l) { zVDRHead = l; } public void setADRHead(long l) { aDRHead = l; } public void setEof(long l) { eof = l; } public void setNumAttr(int n) { numAttr = n; } public void setNzVars(int n) { nzVars = n; } public void setLastLeapSecondId(int n) { lastLeapSecondId = n; } public ByteBuffer get() { record.position(0); record.putLong((long)(record.capacity())); record.putInt(2); record.putLong(0); record.putLong(zVDRHead); record.putLong(aDRHead); record.putLong(eof); record.putInt(0); record.putInt(numAttr); record.putInt(-1); record.putInt(0); record.putInt(nzVars); record.putLong(0); record.putInt(0); record.putInt(lastLeapSecondId); record.putInt(0); record.position(0); return record; } public int getSize() {return record.limit();} }