|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.adapt.afile.AFile
com.pentec.adapt.afile.Ascii
public class Ascii
The Ascii class allows use of the ADAPT AFile interface with ASCII data.
| Field Summary | |
|---|---|
private static java.lang.String |
$XX
|
private static java.lang.String |
$YY
|
| Fields inherited from class com.pentec.adapt.afile.AFile |
|---|
$Value, $X, $Y, ADAPTXY, ASCII, BASLER, CIGARS, COLUMNPROFILE, dataBuffer, fileChooser, FIST1, FIST2, header, iFileType, IMAGE, inputFile, IRIS, iScanSize, isMovie, iVisualizationMode, jfile, mainFrame, MULTISCAN, MULTISLICE, OTHER, POD, progress, REDLAKEMS10, REDLAKEMS8, ROWPROFILE, SAF, SATIRSA, SATIRSB, SINGLE, TPROFILE, UNKNOWN, ZPROFILE |
| Constructor Summary | |
|---|---|
private |
Ascii(DataFrame mainFrame,
java.io.File file,
com.sun.media.jai.codec.FileSeekableStream stream,
double[][] aad)
The private constructor can only be called from the static open method. |
| Method Summary | |
|---|---|
APanel |
getPanel()
|
static boolean |
open(DataFrame dataFrame,
java.io.File file)
Attempt to open a file as ASCII data. |
private static java.util.ArrayList |
parseTokens(java.lang.String $Text,
java.util.ArrayList alTokens)
Check a string for space, comma, and tab delimeters, then return all parsed tokens in an ArrayList |
int |
read()
For this implementation of ASCII input, a single scan is read in at startup. |
static double[][] |
readDelimitedText(java.io.InputStream inputStream)
Attempt to ready x, y data from an input stream. |
private static double[][] |
readDelimitedText(com.sun.media.jai.codec.SeekableStream seekableStream)
Attempt to ready x,y data from an input stream. |
| Methods inherited from class com.pentec.adapt.afile.AFile |
|---|
chooseFile, closeProgress, fileClose, fileExit, fileExit, fileOpen, fileOpen, fileOpen, fileOpen, fileOpen, frameClose, frameClose, getDataBuffer, getDataType, getNumBands, getSampleModel, getScan$, getScanSize, getSlice$, getValue$, getVisualizationMode, getVisualizationMode$, getX$, getY$, isMovie, openProgress, read, setDataBuffer, setLabels, setProgress, setScanSize, setVisualizationMode, setX$, setY$ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String $XX
private static java.lang.String $YY
| Constructor Detail |
|---|
private Ascii(DataFrame mainFrame,
java.io.File file,
com.sun.media.jai.codec.FileSeekableStream stream,
double[][] aad)
mainFrame - the DataFrame attempting to open a filefile - the file to openstream - the file input streamaad - the x and y data arrays| Method Detail |
|---|
public APanel getPanel()
getPanel in class AFile
public static boolean open(DataFrame dataFrame,
java.io.File file)
dataFrame - the ADAPT data frame attempting to open the filefile - the file to open
private static java.util.ArrayList parseTokens(java.lang.String $Text,
java.util.ArrayList alTokens)
public int read()
public static double[][] readDelimitedText(java.io.InputStream inputStream)
inputStream - the stream to read from
private static double[][] readDelimitedText(com.sun.media.jai.codec.SeekableStream seekableStream)
seekableStream - the stream to read from
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||