|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.grib1.Grib1WriteIndex
public class Grib1WriteIndex
Creates an index for a Grib1 file; optionally makes an in-memory one.
Nested Class Summary | |
---|---|
protected class |
Grib1WriteIndex.CompareKeyDescend
|
Constructor Summary | |
---|---|
Grib1WriteIndex()
|
Method Summary | |
---|---|
GridIndex |
extendGribIndex(File grib,
File gbx,
String gbxName,
RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
GridIndex |
extendGribIndex(File grib,
File gbx,
String gribName,
String gbxName,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
boolean |
extendGribIndex(String gbxName,
RandomAccessFile inputRaf,
long rafLastModified,
DataOutputStream out)
extend a Grib file index; optionally create an in-memory index. |
static void |
main(String[] args)
creates a Grib1 index for given Grib1 file. |
void |
setCheckPDS(boolean flag)
|
void |
setDebug(boolean flag)
|
void |
setLogPDS(Grib2WriteIndex.pdsLogType flag)
|
void |
setVerbose(boolean flag)
|
GridIndex |
writeGribIndex(File grib,
String gbxName,
RandomAccessFile raf,
boolean makeIndex)
extend a Grib file index; optionally create an in-memory index. |
GridIndex |
writeGribIndex(File grib,
String gribName,
String gbxName,
boolean makeIndex)
create a Grib1 file index. |
boolean |
writeGribIndex(RandomAccessFile inputRaf,
long rafLastModified,
DataOutputStream out)
Write a Grib file index. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grib1WriteIndex()
Method Detail |
---|
public final GridIndex writeGribIndex(File grib, String gribName, String gbxName, boolean makeIndex) throws IOException
grib
- as File handlegribName
- gribNamegbxName
- gbxNamemakeIndex
- make an in-memory index if true
IOException
- on Grib readpublic final GridIndex writeGribIndex(File grib, String gbxName, RandomAccessFile raf, boolean makeIndex) throws IOException
grib
- Grib filegbxName
- Index nameraf
- RandomAccessFilemakeIndex
- make an in-memory index if true
IOException
- on Grib file readpublic final boolean writeGribIndex(RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
inputRaf
- GRIB file rafrafLastModified
- longout
- DataOutputStream
IOException
- on Grib file readpublic final GridIndex extendGribIndex(File grib, File gbx, String gribName, String gbxName, boolean makeIndex) throws IOException
grib
- as a Filegbx
- as a FilegribName
- as a StringgbxName
- as a StringmakeIndex
- make an in-memory index if true
IOException
- on gbx writepublic final GridIndex extendGribIndex(File grib, File gbx, String gbxName, RandomAccessFile raf, boolean makeIndex) throws IOException
grib
- as a Filegbx
- as a FilegbxName
- as a Stringraf
- RandomAccessFilemakeIndex
- make an in-memory index if true
IOException
- gbx writepublic final boolean extendGribIndex(String gbxName, RandomAccessFile inputRaf, long rafLastModified, DataOutputStream out) throws IOException
gbxName
- a GridIndex is used to extend/create a new GridIndexinputRaf
- GRIB file rafrafLastModified
- of the rafout
- where to write
IOException
- on gbx writepublic void setCheckPDS(boolean flag)
public void setLogPDS(Grib2WriteIndex.pdsLogType flag)
public void setDebug(boolean flag)
public void setVerbose(boolean flag)
public static void main(String[] args) throws IOException
args
- 2 if Grib file and index file name given
IOException
- on raf read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |