Skip to main content

Class StringTextArtifactReader

An Artifact for reading a string from a text file called data.txt.

Namespace: Workspace.XBR.Xperiflow.Routines.Io

Assembly: Xperiflow.dll

Declaration
public class StringTextArtifactReader : IArtifactReader<string>

Implements: Workspace.XBR.Xperiflow.Routines.Io.IArtifactReader<System.String>

Methods

IsApplicable(List<ArtifactFileAnnotation>)

Determine whether or not this Artifact Reader is applicable to the given artifact file annotations.

Declaration
public bool IsApplicable(List<ArtifactFileAnnotation> artifactFileAnnotations)
Returns

System.Boolean

Parameters
TypeNameDescription
System.Collections.Generic.List< Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactFileAnnotation >artifactFileAnnotationsThe file annotation protocol as defined by the Routine system.

Read(IMetaFileSystemClient, string, List<ArtifactFileAnnotation>)

Reads a string from a text file called data.txt based on a directory path that exists in the Workspace.XBR.Xperiflow.MetaFileSystem.IMetaFileSystemClient.

Declaration
public string Read(IMetaFileSystemClient metaFileSystemClient, string dirpath, List<ArtifactFileAnnotation> artifactFileAnnotations)
Returns

System.String

The string data from the text file.

Parameters
TypeNameDescription
Workspace.XBR.Xperiflow.MetaFileSystem.IMetaFileSystemClientmetaFileSystemClientThe MetaFileSystemClient to use to read the text file.
System.StringdirpathThe directory path to where the text file data.txt exists.
System.Collections.Generic.List< Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactFileAnnotation >artifactFileAnnotations

Implements

  • Workspace.XBR.Xperiflow.Routines.Io.IArtifactReader<System.String>

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

Was this page helpful?