Worldwind public release 0.2.1
[worldwind-tracker.git] / gov / nasa / worldwind / formats / nitfs / NitfsUserDefinedHeaderSegment.java
blobbdbf79371eb23c2bea66cf1fac48622d4d72863c
1 package gov.nasa.worldwind.formats.nitfs;
3 import gov.nasa.worldwind.formats.rpf.*;
4 import gov.nasa.worldwind.*;
5 /*
6 Copyright (C) 2001, 2007 United States Government
7 as represented by the Administrator of the
8 National Aeronautics and Space Administration.
9 All Rights Reserved.
12 /**
13 * @author Lado Garakanidze
14 * @version $Id: NitfsUserDefinedHeaderSegment Apr 4, 2007 6:07:10 PM lado
16 public abstract class NitfsUserDefinedHeaderSegment extends NitfsSegment
18 protected int overflow;
19 protected String dataTag;
21 public NitfsUserDefinedHeaderSegment(java.nio.ByteBuffer buffer)
23 super(NitfsSegmentType.UserDefinedHeaderSegment, buffer, 0, 0, 0, 0);
25 this.headerLength = Integer.parseInt(NitfsUtil.getString(buffer, 5));
26 this.overflow = Integer.parseInt(NitfsUtil.getString(buffer, 3));
27 this.dataTag = NitfsUtil.getString(buffer, 6);
28 this.dataLength = Integer.parseInt(NitfsUtil.getString(buffer, 5));