| Package | Description |
|---|---|
| org.opendatafoundation.data.spss |
Provides the classes necessary to read SPSS .sav data files to (1) produce DDI 2.0 and DDI 3.0 XML metadata and (2) export the data into ASCII format.
|
| Modifier and Type | Method and Description |
|---|---|
abstract SPSSVariableCategory |
SPSSVariable.addCategory(byte[] byteValue,
String label)
Adds a category to the variable
|
SPSSVariableCategory |
SPSSNumericVariable.addCategory(byte[] byteValue,
String label)
Adds a category to the variable based on a byte[8] value
|
SPSSVariableCategory |
SPSSNumericVariable.addCategory(double value,
String label)
Adds a category to the variable based on a double value
|
void |
SPSSFile.dumpData()
Dumps the file data to the console (for debugging purposes)
|
void |
SPSSFile.dumpData(int nRecords)
Dumps the file data to the console (for debugging purposes)
|
void |
SPSSFile.dumpData(int nRecords,
FileFormatInfo dataFormat)
Dumps the file data (for debugging purposes)
|
void |
SPSSFile.dumpDDI2()
Dumps the DDI2 metadata (for debugging purposes).
|
void |
SPSSFile.dumpDDI3()
Dumps the DDI3 metadata(for debugging purposes).
|
long |
SPSSFile.exportData(File file,
FileFormatInfo dataFormat)
Reads the data from the disk and exports a file based on the specified
format
|
abstract SPSSVariableCategory |
SPSSVariable.getCategory(byte[] byteValue)
Gets a category for this variable based on a byte[8] value
|
SPSSVariableCategory |
SPSSNumericVariable.getCategory(byte[] byteValue)
Gets a category for this variable based on a byte[8] value
|
SPSSVariableCategory |
SPSSNumericVariable.getCategory(double value)
Gets a category for this variable based on a double value
|
Document |
SPSSFile.getDDI2()
Creates a DDI 2.0 XML Document based for the SPSS data format
|
Element |
SPSSVariable.getDDI2(Document doc,
FileFormatInfo dataFormat,
int offset)
Generates a DDI 2 element for this variable based on the specified
data format.
|
Element |
SPSSVariable.getDDI2(Document doc,
int offset)
Generates a DDI 2 element for this variable based on the SPSS data
format.
|
Document |
SPSSFile.getDDI2(FileFormatInfo dataFormat)
Creates a DDI 2.0 XML Document based for the specified data file format
|
Element |
SPSSVariable.getDDI3CodeScheme(Document doc)
Generates a DDI3 Code Scheme for this variable using default category and
code scheme identifiers
|
Element |
SPSSVariable.getDDI3DataItem(Document doc,
FileFormatInfo dataFormat,
int offset)
Generates a DDI3 Data Item for this variable.
|
Document |
SPSSFile.getDDI3LogicalProduct()
Creates a DDI 3.0 Logical Product XML Module for this file.
|
Document |
SPSSFile.getDDI3LogicalProduct(String uniqueID)
Creates a DDI 3.0 Logical Product XML Module for this file.
|
Document |
SPSSFile.getDDI3LogicalProduct(String uniqueID,
String identifyingAgency)
Creates a DDI 3.0 LogiclaProduct XML Document for this file.
|
Document |
SPSSFile.getDDI3PhysicalDataProduct(FileFormatInfo dataFormat)
Creates a DDI 3.0 PhysicalDataProduct XML Document for this file based on
the specified file format using the default logical product ID.
|
Document |
SPSSFile.getDDI3PhysicalDataProduct(FileFormatInfo dataFormat,
String logicalProductID)
Creates a DDI 3.0 PhysicalDataProduct XML Document for this file based on
the specified file format.
|
Document |
SPSSFile.getDDI3PhysicalDataProduct(FileFormatInfo dataFormat,
String logicalProductID,
String uniqueID)
Creates a DDI 3.0 PhysicalDataProduct XML Document for this file based on
the specified file format.
|
Document |
SPSSFile.getDDI3PhysicalInstance(URI uri,
FileFormatInfo dataFormat)
Creates a DDI 3.0 PhysicalInstance XML Document for this file based on
the specified file format using default indentifiers.
|
Document |
SPSSFile.getDDI3PhysicalInstance(URI uri,
FileFormatInfo dataFormat,
String recordLayoutSchemeID)
Creates a DDI 3.0 PhysicalInstance XML Document for this file based on
the specified file format.
|
Document |
SPSSFile.getDDI3PhysicalInstance(URI uri,
FileFormatInfo dataFormat,
String recordLayoutSchemeID,
String uniqueID)
Creates a DDI 3.0 PhysicalInstance XML Document for this file based on
the specified file format.
|
Element |
SPSSVariable.getDDI3ProprietaryDataItem(Document doc)
Generates a DDI3 Proprietary Data Item for this variable.
|
String |
SPSSFile.getRecord(int obsNumber,
FileFormatInfo dataFormat)
Gets a data record from data in memory based on on the record number and
specified format.
|
String |
SPSSFile.getRecordFromDisk(FileFormatInfo dataFormat,
boolean rewind)
Gets a data record in the specified format.
|
double |
SPSSNumericVariable.getValueAsDouble(int obsNumber)
Returns an observation value as a double.
|
abstract String |
SPSSVariable.getValueAsString(int recordNumber,
FileFormatInfo dataFormat) |
String |
SPSSStringVariable.getValueAsString(int obsNumber,
FileFormatInfo dataFormat)
Returns an observation value as a string
|
String |
SPSSNumericVariable.getValueAsString(int obsNumber,
FileFormatInfo dataFormat)
Returns an observation value as a string based on the specified data ad
variable format.
|
boolean |
SPSSFile.isCompressed()
Determines if the data section of the file is compressed
|
void |
SPSSFile.loadData()
Load the data section of the file into the variables in memory.
|
void |
SPSSFile.loadMetadata()
Loads the dictionary and other SPSS metadata from the file
|
void |
SPSSRecordType7Subtype5.read(SPSSFile is) |
void |
SPSSRecordType7Subtype4.read(SPSSFile is) |
void |
SPSSRecordType7Subtype3.read(SPSSFile is) |
void |
SPSSRecordType7Subtype21.read(SPSSFile is) |
void |
SPSSRecordType7Subtype14.read(SPSSFile is) |
void |
SPSSRecordType7Subtype13.read(SPSSFile is) |
void |
SPSSRecordType7Subtype11.read(SPSSFile is)
a collection of VariableDisplayParams (one for each variable)
|
void |
SPSSRecordType7.read(SPSSFile is) |
void |
SPSSRecordType6.read(SPSSFile is) |
void |
SPSSRecordType4.read(SPSSFile is) |
void |
SPSSRecordType3.read(SPSSFile is) |
void |
SPSSRecordType2.read(SPSSFile is)
Read the record in the SPSS file
|
void |
SPSSRecordType1.read(SPSSFile is) |
void |
SPSSDataRecord.read(SPSSFile is)
Reads the values for the current observation into memory.
|
abstract void |
SPSSAbstractRecordType.read(SPSSFile is) |
void |
SPSSDataRecord.read(SPSSFile is,
boolean fromDisk)
Reads the values for the current observation into memory.
|
String |
SPSSNumericVariable.valueToString(double value)
Converts a numeric value (float) into a string representation based on
the variable formatting.
|
Copyright © 2016. All rights reserved.