Class DataStreamHelper
A data stream helper.
Inheritance
System.Object
DataStreamHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.IO.DataStreams
Assembly: Kephas.Data.IO.dll
Syntax
public static class DataStreamHelper
Methods
| Improve this Doc View SourceFromJsonFile(String, String)
Creates a DataStream from a string containing JSON data.
Declaration
public static DataStream FromJsonFile(string filePath, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path to the file containing JSON data. |
System.String | name | The name (optional). |
Returns
Type | Description |
---|---|
DataStream | A DataStream. |
FromJsonString(String, String)
Creates a DataStream from a string containing JSON data.
Declaration
public static DataStream FromJsonString(string data, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The JSON data. |
System.String | name | The name (optional). |
Returns
Type | Description |
---|---|
DataStream | A DataStream. |
FromXmlFile(String, String)
Creates a DataStream from a string containing XML data.
Declaration
public static DataStream FromXmlFile(string filePath, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | The path to the file containing XML data. |
System.String | name | The name (optional). |
Returns
Type | Description |
---|---|
DataStream | A DataStream. |
FromXmlString(String, String)
Creates a DataStream from a string containing XML data.
Declaration
public static DataStream FromXmlString(string data, string name = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The XML data. |
System.String | name | The name (optional). |
Returns
Type | Description |
---|---|
DataStream | A DataStream. |