/// <exception cref="System.IO.IOException"/> public virtual void Load() { ObjectMapper mapper = new ObjectMapper(); FilePath file = this.GetSaveFile(); this.state = mapper.Reader(typeof(FsVolumeImpl.BlockIteratorState)).ReadValue(file ); FsVolumeImpl.Log.Trace("load({}, {}): loaded iterator {} from {}: {}", this._enclosing .storageID, this.bpid, this.name, file.GetAbsoluteFile(), mapper.WriterWithDefaultPrettyPrinter ().WriteValueAsString(this.state)); }
public virtual void Rewind() { this.cache = null; this.cacheMs = 0; this.state = new FsVolumeImpl.BlockIteratorState(); }