public abstract class SpectralFileLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected SpecchioCampaignDataLoader |
campaignDataLoader |
int |
file_format_id |
java.lang.String |
file_format_name |
SpectralFileInsertResult |
insert_result |
protected SPECCHIOPreferencesStore |
prefs |
protected SpectralFile |
spec_file |
Constructor and Description |
---|
SpectralFileLoader(java.lang.String file_format_name,
SPECCHIOClient specchio_client,
SpecchioCampaignDataLoader campaignDataLoader) |
Modifier and Type | Method and Description |
---|---|
static double |
arr2double(byte[] arr,
int start) |
static float |
arr2float(byte[] arr,
int start) |
static int |
arr2int(byte[] arr,
int start) |
static long |
arr2long(byte[] arr,
int start) |
static short |
arr2short(byte[] arr,
int start) |
static int |
arr4int(byte[] arr,
int start) |
static long |
arr4uint(byte[] by,
int start) |
java.lang.String |
get_file_format_name() |
org.joda.time.DateTime |
getCalibration_date() |
SpectralFile |
getSpec_file() |
abstract SpectralFile |
load(java.io.File file) |
protected java.lang.Double |
read_double(java.io.DataInputStream in) |
protected java.lang.Float |
read_float(java.io.DataInputStream in) |
protected java.lang.Integer |
read_int(java.io.DataInputStream in) |
protected java.lang.Integer |
read_long(java.io.DataInputStream in) |
protected java.lang.Integer |
read_short(java.io.DataInputStream in) |
protected java.lang.String |
read_string(java.io.DataInputStream in,
int no_of_chars) |
protected java.lang.Integer |
read_uint(java.io.DataInputStream in) |
protected java.lang.Integer |
read_ulong(java.io.DataInputStream in) |
protected java.lang.String |
remove_leading_spaces(java.lang.String input) |
protected java.lang.String |
remove_trailing_spaces(java.lang.String input) |
protected java.lang.String |
remove_trailing_tabs(java.lang.String input) |
protected java.lang.String |
remove_unprintable_chars(java.lang.String s) |
void |
set_file_format_id(int file_format_id) |
void |
setCalibration_date(org.joda.time.DateTime calibration_date) |
void |
setSpec_file(SpectralFile spec_file) |
protected void |
skip(java.io.DataInputStream in,
int no_of_bytes) |
protected void |
whitespace(java.io.BufferedReader d) |
public int file_format_id
public java.lang.String file_format_name
protected SpectralFile spec_file
public SpectralFileInsertResult insert_result
protected SpecchioCampaignDataLoader campaignDataLoader
protected SPECCHIOPreferencesStore prefs
public SpectralFileLoader(java.lang.String file_format_name, SPECCHIOClient specchio_client, SpecchioCampaignDataLoader campaignDataLoader)
public abstract SpectralFile load(java.io.File file) throws java.io.IOException, MetaParameterFormatException
java.io.IOException
MetaParameterFormatException
protected java.lang.String read_string(java.io.DataInputStream in, int no_of_chars) throws java.io.IOException
java.io.IOException
public java.lang.String get_file_format_name()
public void set_file_format_id(int file_format_id)
public SpectralFile getSpec_file()
public void setSpec_file(SpectralFile spec_file)
protected java.lang.Integer read_short(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Integer read_int(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Integer read_uint(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Integer read_long(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Integer read_ulong(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Float read_float(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected java.lang.Double read_double(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected void skip(java.io.DataInputStream in, int no_of_bytes)
protected void whitespace(java.io.BufferedReader d)
protected java.lang.String remove_trailing_spaces(java.lang.String input)
protected java.lang.String remove_leading_spaces(java.lang.String input)
protected java.lang.String remove_trailing_tabs(java.lang.String input)
protected java.lang.String remove_unprintable_chars(java.lang.String s)
public static double arr2double(byte[] arr, int start)
public static float arr2float(byte[] arr, int start)
public static long arr2long(byte[] arr, int start)
public static int arr2int(byte[] arr, int start)
public static short arr2short(byte[] arr, int start)
public static int arr4int(byte[] arr, int start)
public static long arr4uint(byte[] by, int start)
public org.joda.time.DateTime getCalibration_date()
public void setCalibration_date(org.joda.time.DateTime calibration_date)