Worldwind public release 0.2
[worldwind-tracker.git] / gov / nasa / worldwind / formats / rpf / RpfFile.java
blobe00ad6ba0d6eea9aa920cac691b4187877e7ba02
1 package gov.nasa.worldwind.formats.rpf;
3 import gov.nasa.worldwind.formats.nitfs.*;
5 import java.io.*;
6 /*
7 Copyright (C) 2001, 2007 United States Government
8 as represented by the Administrator of the
9 National Aeronautics and Space Administration.
10 All Rights Reserved.
13 /**
14 * @author lado
15 * @version $Id: RpfFile Apr 8, 2007 8:53:48 AM
17 public class RpfFile
19 private NitfsMessage nitfsMsg;
20 private java.io.File rpfFile;
22 public File getFile()
24 return this.rpfFile;
27 public NitfsFileHeader getNitfsFileHeader()
29 return (null != nitfsMsg) ? nitfsMsg.getNitfsFileHeader() : null;
32 public NitfsSegment getNitfsSegment(NitfsSegmentType segmentType)
34 return (null != nitfsMsg) ? nitfsMsg.getSegment(segmentType) : null;
37 protected RpfFile(java.io.File rpfFile) throws IOException
39 this.rpfFile = rpfFile;
40 this.nitfsMsg = NitfsMessage.load(rpfFile);