Beispiel #1
0
        /// <exception cref="System.IO.IOException"/>
        public virtual void ReadFields(BinaryReader reader)
        {
            string strPath = Text.ReadString(@in, Text.DefaultMaxLen);

            this.path              = new Path(strPath);
            this.length            = @in.ReadLong();
            this.isdir             = @in.ReadBoolean();
            this.block_replication = @in.ReadShort();
            blocksize              = @in.ReadLong();
            modification_time      = @in.ReadLong();
            access_time            = @in.ReadLong();
            permission.ReadFields(@in);
            owner = Text.ReadString(@in, Text.DefaultMaxLen);
            group = Text.ReadString(@in, Text.DefaultMaxLen);
            if (@in.ReadBoolean())
            {
                this.symlink = new Path(Text.ReadString(@in, Text.DefaultMaxLen));
            }
            else
            {
                this.symlink = null;
            }
        }