public class LMSAscii extends FwkFileFilter implements FwkReadColumnsFromStreamInterface
Property Keyword | Datatype | Default | Description |
---|---|---|---|
LMSAscii.Text.Description | classname | (*.asc) | File type description. |
Modifier and Type | Class and Description |
---|---|
class |
LMSAscii.LMSAsciiColumn |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FFT_MIME |
static java.lang.String |
MATAL_MIME |
static java.lang.String |
MIME_KEY |
static java.lang.String |
PSD_MIME |
static java.lang.String |
RFM_MIME |
static java.lang.String |
TL_MIME |
static java.lang.String |
TS_MIME |
version
Constructor and Description |
---|
LMSAscii() |
LMSAscii(java.lang.String spec)
The constructor receiving the file or URL specification of a file
containing the Univeral Binary Header.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File f)
Return true if file is accepted.
|
java.lang.String |
getDescription()
The description of this filter.
|
static void |
main(java.lang.String[] args)
Main module of this application.
|
FwkColumnAccessInterface[] |
read(java.io.InputStream is)
Read the data from input stream.
|
protected void |
read(java.lang.String spec)
Read the header from file.
|
FwkColumnAccessInterface[] |
read(java.lang.String spec,
java.io.InputStream is)
Read columns from stream.
|
java.lang.String |
toString()
Get a string presentation of the header.
|
accept, addExtension, getExtension, getVersion, isExtensionListInDescription, setDescription, setExtensionListInDescription, setPattern
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept
public static final java.lang.String PSD_MIME
public static final java.lang.String FFT_MIME
public static final java.lang.String RFM_MIME
public static final java.lang.String TL_MIME
public static final java.lang.String MATAL_MIME
public static final java.lang.String TS_MIME
public static final java.lang.String MIME_KEY
public LMSAscii()
public LMSAscii(java.lang.String spec) throws java.io.IOException, java.io.FileNotFoundException
spec
- the resource location of the header.java.io.IOException
java.io.FileNotFoundException
protected void read(java.lang.String spec) throws java.io.IOException, java.io.FileNotFoundException
sepc
- the file specification.java.io.IOException
java.io.FileNotFoundException
public FwkColumnAccessInterface[] read(java.io.InputStream is) throws java.io.IOException, java.io.FileNotFoundException
is
- the input streamjava.io.IOException
java.io.FileNotFoundException
public FwkColumnAccessInterface[] read(java.lang.String spec, java.io.InputStream is) throws FwkException
read
in interface FwkReadColumnsFromStreamInterface
is
- The input stream from that the column should be read.an
- exception when ever a problem occurs.FwkException
public boolean accept(java.io.File f)
accept
in interface FwkFileFilterInterface
accept
in class FwkFileFilter
f
- The file to be checked.FwkFileFilter.getExtension(java.io.File)
,
FileFilter#accepts
public java.lang.String getDescription()
getDescription
in interface FwkFileFilterInterface
getDescription
in class FwkFileFilter
setDescription
,
setExtensionListInDescription
,
isExtensionListInDescription
,
FileFilter.getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)