public final class FitsFactory extends Object
Modifier and Type | Field and Description |
---|---|
static int |
FITS_BLOCK_SIZE |
Modifier and Type | Method and Description |
---|---|
static Data |
dataFactory(Header hdr) |
static boolean |
getAllowTerminalJunk() |
static IHierarchKeyFormatter |
getHierarchFormater() |
static boolean |
getUseHierarch() |
static <DataClass extends Data> |
hduFactory(Header hdr,
DataClass d) |
static <DataClass extends Data> |
HDUFactory(Header hdr,
DataClass d)
Deprecated.
use
hduFactory(Header, Data) instead |
static BasicHDU<?> |
hduFactory(Object o) |
static BasicHDU<?> |
HDUFactory(Object o)
Deprecated.
use
hduFactory(Object) instead |
static boolean |
isLongStringsEnabled() |
static void |
setAllowTerminalJunk(boolean allowTerminalJunk)
Do we allow junk after a valid FITS file?
|
static void |
setCheckAsciiStrings(boolean checkAsciiStrings)
Enable/Disable checking of strings values used in tables to ensure that
they are within the range specified by the FITS standard.
|
static void |
setHierarchFormater(IHierarchKeyFormatter formatter)
There is not a real standard how to write hierarch keys, default we use
the one where every key is separated by a blank.
|
static void |
setLongStringsEnabled(boolean longStringsEnabled)
Enable/Disable longstring support.
|
static void |
setUseAsciiTables(boolean useAsciiTables)
Indicate whether ASCII tables should be used where feasible.
|
static void |
setUseHierarch(boolean useHierarch)
Enable/Disable hierarchical keyword processing.
|
static ExecutorService |
threadPool() |
static void |
useThreadLocalSettings(boolean useThreadSettings)
Use thread local settings for the current thread instead of the global
ones if the parameter is set to true, else use the shared global
settings.
|
public static final int FITS_BLOCK_SIZE
public static Data dataFactory(Header hdr) throws FitsException
hdr
- header to create the data fromFitsException
- if the header did not contain enough information to detect
the type of the datapublic static boolean getAllowTerminalJunk()
public static boolean getUseHierarch()
true
if we are processing HIERARCH style keywordspublic static <DataClass extends Data> BasicHDU<DataClass> hduFactory(Header hdr, DataClass d) throws FitsException
DataClass
- the class of the datahdr
- the header of the dated
- the dataFitsException
- if the operation failedpublic static BasicHDU<?> hduFactory(Object o) throws FitsException
o
- The object to be described.FitsException
- if the parameter could not be converted to a hdu.@Deprecated public static <DataClass extends Data> BasicHDU<DataClass> HDUFactory(Header hdr, DataClass d) throws FitsException
hduFactory(Header, Data)
insteadDataClass
- the class of the datahdr
- the header of the dated
- the dataFitsException
- if the operation failed@Deprecated public static BasicHDU<?> HDUFactory(Object o) throws FitsException
hduFactory(Object)
insteado
- The object to be described.FitsException
- if the parameter could not be converted to a hdu.public static boolean isLongStringsEnabled()
true
If long string support is enabled.public static void setAllowTerminalJunk(boolean allowTerminalJunk)
allowTerminalJunk
- value to setpublic static void setCheckAsciiStrings(boolean checkAsciiStrings)
checkAsciiStrings
- value to setpublic static void setLongStringsEnabled(boolean longStringsEnabled)
longStringsEnabled
- value to setpublic static void setUseAsciiTables(boolean useAsciiTables)
useAsciiTables
- value to setpublic static void setHierarchFormater(IHierarchKeyFormatter formatter)
formatter
- the hierarch key formatter.public static IHierarchKeyFormatter getHierarchFormater()
public static void setUseHierarch(boolean useHierarch)
useHierarch
- value to setpublic static ExecutorService threadPool()
public static void useThreadLocalSettings(boolean useThreadSettings)
useThreadSettings
- true if the thread should not share the global settings.Copyright © 1996–2016 nom-tam-fits. All rights reserved.