22using GAIL . Serializing . Formatters ;
33using GAIL . Serializing . Streams ;
44using GAIL . Storage . Hierarchy ;
5- using GAIL . Storage . Streams ;
65using LambdaKit . Logging ;
76
87namespace GAIL . Storage ;
@@ -47,7 +46,7 @@ public static Logger Logger { get {
4746 /// <returns>True if it succeeded.</returns>
4847 public virtual bool Load ( Stream stream , bool shouldCloseStream = true ) {
4948 try {
50- using StorageParser parser = new ( stream , shouldCloseStream ) ;
49+ using Serializer parser = new ( stream , shouldCloseStream ) ;
5150 Parse ( parser , Formatter ) ;
5251 } catch ( Exception e ) {
5352 Logger . LogError ( "Failed to load storage file:" ) ;
@@ -78,7 +77,7 @@ public virtual bool Load(string filePath) {
7877 /// <returns>True if it succeeded.</returns>
7978 public virtual bool Save ( Stream stream , bool shouldCloseStream = true ) {
8079 try {
81- using StorageSerializer serializer = new ( stream , shouldCloseStream ) ;
80+ using Serializer serializer = new ( stream , shouldCloseStream ) ;
8281 Serialize ( serializer , Formatter ) ;
8382 } catch ( Exception e ) {
8483 Logger . LogError ( "Failed to save storage file:" ) ;
@@ -103,9 +102,9 @@ public virtual bool Save(string filePath) {
103102 return Save ( fs ) ;
104103 }
105104
106- /// <inheritdoc/>
107- public abstract void Serialize ( Serializer serializer , IFormatter ? formatter = null ) ;
105+ /// <inheritdoc/>
106+ public abstract void Serialize ( Serializer serializer , IFormatter ? formatter = null ) ;
108107
109- /// <inheritdoc/>
110- public abstract void Parse ( Parser parser , IFormatter ? formatter = null ) ;
108+ /// <inheritdoc/>
109+ public abstract void Parse ( Parser parser , IFormatter ? formatter = null ) ;
111110}
0 commit comments