ZipEntryFile represents a file entry inside a zip file.
상속: File
예제 #1
0
        /// <summary>
        /// Return a map to use for Pod.files()
        /// </summary>
        public List podFiles(Fan.Sys.Uri podUri)
        {
            List        list = new List(Sys.FileType);
            IEnumerator en   = zipFile.GetEnumerator();

            while (en.MoveNext())
            {
                ZipEntry entry = (ZipEntry)en.Current;
                string   name  = entry.Name;
                if (name.EndsWith(".fcode"))
                {
                    continue;
                }
                if (name.EndsWith(".class"))
                {
                    continue;
                }
                if (name.EndsWith(".def") && !name.Contains("/"))
                {
                    continue;
                }
                Fan.Sys.Uri          uri  = Fan.Sys.Uri.fromStr(podUri + "/" + LocalFile.fileNameToUriName(entry.Name));
                Fan.Sys.ZipEntryFile file = new Fan.Sys.ZipEntryFile(zipFile, entry, uri);
                list.add(file);
            }
            return(list);
        }
예제 #2
0
파일: Zip.cs 프로젝트: nomit007/f4
 public static Map contents(ZipFile zipFile)
 {
     Map c = new Map(Sys.UriType, Sys.FileType);
       IEnumerator e = zipFile.GetEnumerator();
       while (e.MoveNext())
       {
     ZipEntry entry = (ZipEntry)e.Current;
     ZipEntryFile f = new ZipEntryFile(zipFile, entry);
     c.set(f.m_uri, f);
       }
       return c;
 }
예제 #3
0
        public static Map contents(ZipFile zipFile)
        {
            Map         c = new Map(Sys.UriType, Sys.FileType);
            IEnumerator e = zipFile.GetEnumerator();

            while (e.MoveNext())
            {
                ZipEntry     entry = (ZipEntry)e.Current;
                ZipEntryFile f     = new ZipEntryFile(zipFile, entry);
                c.set(f.m_uri, f);
            }
            return(c);
        }
예제 #4
0
파일: FStore.cs 프로젝트: nomit007/f4
 /// <summary>
 /// Return a map to use for Pod.files()
 /// </summary>
 public List podFiles(Fan.Sys.Uri podUri)
 {
     List list = new List(Sys.FileType);
       IEnumerator en = zipFile.GetEnumerator();
       while (en.MoveNext())
       {
     ZipEntry entry = (ZipEntry)en.Current;
     string name = entry.Name;
     if (name.EndsWith(".fcode")) continue;
     if (name.EndsWith(".class")) continue;
     if (name.EndsWith(".def") && !name.Contains("/")) continue;
     Fan.Sys.Uri uri = Fan.Sys.Uri.fromStr(podUri + "/" + LocalFile.fileNameToUriName(entry.Name));
     Fan.Sys.ZipEntryFile file = new Fan.Sys.ZipEntryFile(zipFile, entry, uri);
     list.add(file);
       }
       return list;
 }