|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.microanalysis.EPQLibrary.BaseSpectrum
gov.nist.microanalysis.EPQTools.EMSAFile
public class EMSAFile
A class for reading EMSA files
Copyright: Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain
Company: National Institute of Standards and Technology
| Field Summary |
|---|
| Fields inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
mHashCode, NULL_HASH, NullSpectrum |
| Constructor Summary | |
|---|---|
EMSAFile()
|
|
| Method Summary | |
|---|---|
int |
getChannelCount()
getChannelCount - Returns the number of channels in the spectrum (nominally 2048) |
double |
getChannelWidth()
getChannelWidth - Returns the width of each channel (in eV) |
double |
getCounts(int i)
getCounts - Return the counts in the i-th channel |
SpectrumProperties |
getProperties()
getProperties - Returns the SpectrumProperties object associated with this spectrum. |
double |
getZeroOffset()
getZeroOffset - Returns the energy of the first channel. |
static boolean |
isInstanceOf(java.io.InputStream is)
Is the file specified by this Reader likely to be a EMSAFile. |
void |
read(java.io.InputStream is)
read - reads the parsed file in EMSA format and converts it into the intermediate format, ISpectrumData. |
void |
setFilename(java.lang.String filename)
|
| Methods inherited from class gov.nist.microanalysis.EPQLibrary.BaseSpectrum |
|---|
compareTo, equals, hashCode, initializeSpectrumIndex, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EMSAFile()
| Method Detail |
|---|
public static boolean isInstanceOf(java.io.InputStream is)
is - InputStream - Which will be closed by isInstanceOf
public int getChannelCount()
ISpectrumData
public double getCounts(int i)
ISpectrumData
public double getZeroOffset()
ISpectrumData
public double getChannelWidth()
ISpectrumData
public SpectrumProperties getProperties()
ISpectrumData
public void read(java.io.InputStream is)
throws java.io.IOException
is - FileReader - the EMSA file
java.io.IOException - throws an IOException if there is an error reading the
filepublic void setFilename(java.lang.String filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||