Click or drag to resize

AsciiImporter Class

Central class for import of ascii data.
Inheritance Hierarchy
SystemObject
  Altaxo.Serialization.AsciiAsciiImporter

Namespace: Altaxo.Serialization.Ascii
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class AsciiImporter

The AsciiImporter type exposes the following members.

Methods
 NameDescription
Public methodStatic memberGetAsciiInputFileStream Helper function. Gets an FileStream by providing a file name. The stream is opened with read access and with the FileShare.Read flag.
Public methodStatic memberImportFileIntoNewTable(String) Imports ascii from a memory stream into a table. Returns null (!) if nothing is imported.
Public methodStatic memberImportFileIntoNewTable(String, Char) Imports ascii from a memory stream into a table. Returns null (!) if nothing is imported.
Public Extension MethodImportFilesIntoSeparateNewTables(ProjectFolder, IEnumerableString, Boolean, AsciiImportOptions) Imports multiple Ascii files into newly created new tables (each file into a separate table). The tables are named and stored in the project file in the provided project folder.
Public Extension MethodImportFilesIntoSeparateNewTables(ProjectFolder, IEnumerableString, Boolean, AsciiImportOptions) Imports multiple Ascii files into newly created new tables (each file into a separate table). The tables are named and stored in the project file in the provided project folder.
Public Extension MethodImportFilesIntoSeparateNewTables(ProjectFolder, IEnumerableString, Boolean, Boolean) Imports multiple Ascii files into newly created new tables (each file into a separate table). The tables are named and stored in the project file in the provided project folder.
Public Extension MethodImportFromAsciiFile(DataTable, String) Imports from an ASCII file into an existing table.
Public Extension MethodImportFromAsciiFile(DataTable, String, AsciiImportOptions) Imports from an ASCII file into an existing table. The import options have to be known already.
Public Extension MethodImportFromAsciiFile(DataTable, String, AsciiImportOptions) Imports from an ASCII file into an existing table.
Public Extension MethodImportFromAsciiStream(DataTable, Stream, String) Imports Ascii data from a stream into the data table.
Public Extension MethodImportFromAsciiStream(DataTable, Stream, String, AsciiImportOptions) Imports an Ascii stream into a table. The import options have to be known already.
Public Extension MethodImportFromAsciiStream(DataTable, Stream, String, AsciiImportOptions) Imports Ascii data from a stream into the data table.
Public Extension MethodImportFromAsciiText(DataTable, String) Imports from an ASCII text provided as string into an existing table.
Public Extension MethodImportFromAsciiText(DataTable, String, AsciiImportOptions) Imports from an ASCII text provided as string into an existing table. The import options have to be known already.
Public Extension MethodImportFromAsciiText(DataTable, String, AsciiImportOptions) Imports from an ASCII text provided as string into an existing table.
Public methodStatic memberImportStreamIntoNewTable Imports ascii from a stream into a table. Returns null (!) if nothing is imported.
Public methodStatic memberImportTextIntoNewTable Imports ascii from a string into a table. Returns null (!) if nothing is imported.
Public Extension MethodTryImportFromMultipleAsciiFilesHorizontally(DataTable, IEnumerableString, Boolean, AsciiImportOptions, String) Imports multiple Ascii files into the provided table in horizontal order, i.e. in new columns. The provided importOptions are used to import the files. The first column of each file is considered to be the x-column, and if they match another x-column, the newly imported columns will get the same column group.
Public Extension MethodTryImportFromMultipleAsciiFilesHorizontally(DataTable, IEnumerableString, Boolean, AsciiImportOptions, String) Imports multiple Ascii files into the provided table in horizontal order, i.e. in new columns. The import options are determined from the first file, and then used to import all other files. The first column of each file is considered to be the x-column, and if they match another x-column, the newly imported columns will get the same column group.
Public Extension MethodTryImportFromMultipleAsciiFilesHorizontally(DataTable, IEnumerableString, Boolean, Boolean, String) Imports multiple Ascii files into the provided table in horizontal order, i.e. in new columns. Depending on the value of determineImportOptionsSeparatelyForEachFile, the import options are either deterimined from the first file and then used for all other files, or determined separately for each file. The first column of each file is considered to be the x-column, and if they match another x-column, the newly imported columns will get the same column group.
Public Extension MethodTryImportFromMultipleAsciiFilesVertically(DataTable, IEnumerableString, Boolean, AsciiImportOptions, String) Imports multiple Ascii files into the provided table in vertical order, i.e. in new rows. The provided importOptions are used to import the files. If the names of the subsequently imported table columns match, the data will be written in the matching column. Otherwise new columns with the unmatched column names were created. Property columns will only be imported from the first table.
Public Extension MethodTryImportFromMultipleAsciiFilesVertically(DataTable, IEnumerableString, Boolean, AsciiImportOptions, String) Imports multiple Ascii files into the provided table in vertical order, i.e. in new rows.. The import options are determined from the first file, and then used to import all other files. If the names of the subsequently imported table columns match, the data will be written in the matching column. Otherwise new columns with the unmatched column names were created. Property columns will only be imported from the first table.
Public Extension MethodTryImportFromMultipleAsciiFilesVertically(DataTable, IEnumerableString, Boolean, Boolean, String) Imports multiple Ascii files into the provided table in vertical order, i.e. in new rows.. Depending on the value of determineImportOptionsSeparatelyForEachFile, the import options are either deterimined from the first file and then used for all other files, or determined separately for each file. If the names of the subsequently imported table columns match, the data will be written in the matching column. Otherwise new columns with the unmatched column names were created. Property columns will only be imported from the first table.
Top
Fields
 NameDescription
Public fieldStatic memberFileUrlStartPrepend this string to a file name in order to designate the stream origin as file name origin.
Top
See Also