public class CdfTableBuilder
extends java.lang.Object
implements uk.ac.starlink.table.TableBuilder
Modifier and Type | Field and Description |
---|---|
static CdfTableProfile |
DEFAULT_PROFILE
Default CDF-StarTable translation profile.
|
Constructor and Description |
---|
CdfTableBuilder()
Constructs a default Cdf table builder.
|
CdfTableBuilder(CdfTableProfile profile)
Constructs a Cdf table builder with a custom translation profile.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(java.awt.datatransfer.DataFlavor flavor)
Returns false.
|
static CdfTableProfile |
createProfile(boolean invarParams,
java.lang.String[] descripAttNames,
java.lang.String[] unitAttNames,
java.lang.String[] blankvalAttNames)
Constructs an instance of CdfTableProfile with some suggestions
for attribute names with known semantics.
|
java.lang.String |
getFormatName()
Returns "CDF".
|
uk.ac.starlink.table.StarTable |
makeStarTable(uk.ac.starlink.util.DataSource datsrc,
boolean wantRandom,
uk.ac.starlink.table.StoragePolicy storagePolicy) |
void |
streamStarTable(java.io.InputStream in,
uk.ac.starlink.table.TableSink sink,
java.lang.String pos)
Throws a TableFormatException.
|
public static final CdfTableProfile DEFAULT_PROFILE
public CdfTableBuilder()
public CdfTableBuilder(CdfTableProfile profile)
profile
- CDF-Startable translation profilepublic java.lang.String getFormatName()
getFormatName
in interface uk.ac.starlink.table.TableBuilder
public uk.ac.starlink.table.StarTable makeStarTable(uk.ac.starlink.util.DataSource datsrc, boolean wantRandom, uk.ac.starlink.table.StoragePolicy storagePolicy) throws java.io.IOException
makeStarTable
in interface uk.ac.starlink.table.TableBuilder
java.io.IOException
public boolean canImport(java.awt.datatransfer.DataFlavor flavor)
canImport
in interface uk.ac.starlink.table.TableBuilder
public void streamStarTable(java.io.InputStream in, uk.ac.starlink.table.TableSink sink, java.lang.String pos) throws java.io.IOException
streamStarTable
in interface uk.ac.starlink.table.TableBuilder
java.io.IOException
public static CdfTableProfile createProfile(boolean invarParams, java.lang.String[] descripAttNames, java.lang.String[] unitAttNames, java.lang.String[] blankvalAttNames)
invarParams
- true for turning non-row-varying variables into
table parameters, false for turning them into
variablesdescripAttNames
- ordered list of names of attributes
that might supply description metadataunitAttNames
- ordered list of names of attributes
that might supply units metadatablankvalAttNames
- ordered list of names of attributes
that might supply magic blank valuesCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.