1 package gov
.nasa
.worldwind
.formats
.nitfs
;
3 import gov
.nasa
.worldwind
.formats
.rpf
.*;
4 import gov
.nasa
.worldwind
.*;
6 Copyright (C) 2001, 2007 United States Government
7 as represented by the Administrator of the
8 National Aeronautics and Space Administration.
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));