package gov.nasa.worldwind.formats.rpf;
import gov.nasa.worldwind.formats.nitfs.*;
import gov.nasa.worldwind.util.StringUtil;
/*
Copyright (C) 2001, 2007 United States Government
as represented by the Administrator of the
National Aeronautics and Space Administration.
All Rights Reserved.
*/
/**
* @author Lado Garakanidze
* @version $Id: RpfUserDefinedHeaderSegment Apr 17, 2007 6:55:38 PM lado
*/
public class RPFUserDefinedHeaderSegment extends NITFSUserDefinedHeaderSegment
{
private RPFFileComponents components;
public RPFUserDefinedHeaderSegment(java.nio.ByteBuffer buffer)
{
super(buffer);
if(StringUtil.Equals(RPFHeaderSection.DATA_TAG, this.dataTag))
{
this.components = new RPFFileComponents(buffer);
}
else
throw new NITFSRuntimeException("NITFSReader.RPFHeaderNotFoundInUserDefinedSegment", this.dataTag);
this.restoreBufferPosition();
}
public RPFFileComponents getRPFFileComponents()
{
return this.components;
}
}