public class CIEConstantFileReader
extends java.lang.Object
Constructor and Description |
---|
CIEConstantFileReader()
Creates a new instance of CIEConstantFileReader
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the ZIP input stream.
|
int |
getNumberOfConstants()
Returns the number of fields or constants in the file.
|
void |
openFile(java.io.File inputFile)
Opens the file, and creates a new ZipEntry object for the specified
entry name.
|
void |
openStream(java.util.zip.ZipInputStream zis)
Opens the ZIP input stream.
|
java.lang.Object |
readConstant(int which)
Reads in the constant at the given index.
|
public CIEConstantFileReader()
public void openFile(java.io.File inputFile) throws java.io.FileNotFoundException, java.io.IOException
inputFile
- the file to open.java.io.FileNotFoundException
- if the file cannot be found.java.io.IOException
- if an I/O error has occurredpublic void openStream(java.util.zip.ZipInputStream zis) throws java.io.IOException
zis
- the ZIP input stream to open.java.io.IOException
- if an I/O error has occurredpublic void close() throws java.io.IOException
java.io.IOException
- if an I/O error has occurredpublic java.lang.Object readConstant(int which) throws java.io.IOException
which
- the index of the constant to read in.java.io.IOException
- if an I/O error has occurredpublic int getNumberOfConstants()
Copyright 2004-2006 Ocean Optics, Inc. All Rights Reserved.