Updated to worldwind release 20070817
[worldwind-tracker.git] / gov / nasa / worldwind / formats / rpf / RpfUserDefinedHeaderSegment.java
blobc9a0d5195ee0b7aab521f9892baefed4e3bb0c64
1 package gov.nasa.worldwind.formats.rpf;
3 import gov.nasa.worldwind.formats.nitfs.*;
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: RpfUserDefinedHeaderSegment Apr 17, 2007 6:55:38 PM lado
16 public class RpfUserDefinedHeaderSegment extends NitfsUserDefinedHeaderSegment
18 private RpfFileComponents components;
20 public RpfUserDefinedHeaderSegment(java.nio.ByteBuffer buffer)
22 super(buffer);
24 if(StringUtil.Equals(RpfHeaderSection.DATA_TAG, this.dataTag))
26 this.components = new RpfFileComponents(buffer);
28 else
29 throw new NitfsRuntimeException("NitfsReader.RpfHeaderNotFoundInUserDefinedSegment", this.dataTag);
30 this.restoreBufferPosition();
33 public RpfFileComponents getRpfFileComponents()
35 return this.components;