Click or drag to resize

JcampReader Class

Represents a single data block read from a JCAMP file. This class parses block headers and the XY data section for single-spectrum JCAMP blocks.
Inheritance Hierarchy
SystemObject
  Altaxo.Serialization.JcampJcampReader

Namespace: Altaxo.Serialization.Jcamp
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public class JcampReader

The JcampReader type exposes the following members.

Constructors
 NameDescription
Public methodJcampReader Initializes a new instance of JcampReader and reads JCAMP blocks from the provided stream. The stream is read using a StreamReader; the stream must be readable.
Top
Properties
 NameDescription
Public propertyBlocks The list of parsed JCAMP blocks read from the input stream. Each block contains metadata and the associated X/Y data for a single-spectrum JCAMP block.
Public propertyErrorMessages Messages about any errors during the import of the JCAMP file. Multiple block errors are concatenated.
Top
Methods
 NameDescription
Public methodStatic memberDoubleParse Parses a double value from a string using the invariant number format first and then a format using a comma as decimal separator if the invariant parse fails. Throws on failure.
Public methodStatic memberDoubleTryParse Tries to parse a double value from a string using the invariant number format first and then a format using a comma as decimal separator if the invariant parse fails.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberSplitLineByPlusOrMinus Splits a line that contains numbers separated only by '+' or '-' signs into separate tokens. For example, the string "1.0-2.0+3.0" will be split into ["1.0", "-2.0", "+3.0"].
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also