Exemple #1
0
        /// <summary>
        /// Create a file in the ZIP stream
        /// </summary>
        /// <param name="stream"></param>
        /// <param name="pathObject"></param>
        private void CreateFileEntryInZip(ZipOutputStream stream, IEPubPath pathObject)
        {
            ZipEntry file = _zipFactory.MakeFileEntry(pathObject.PathInEPUB.GetFilePathInZip(_commonSettings.FlatStructure), false);

            file.CompressionMethod = CompressionMethod.Deflated; // as defined by ePub stndard
            stream.PutNextEntry(file);
        }
Exemple #2
0
 /// <summary>
 /// Create a file in the ZIP stream
 /// </summary>
 /// <param name="stream"></param>
 /// <param name="pathObject"></param>
 private void CreateFileEntryInZip(ZipOutputStream stream, IEPubPath pathObject)
 {
     ZipEntry file = _zipFactory.MakeFileEntry(pathObject.PathInEPUB.GetFilePathInZip(_commonSettings.FlatStructure), false);
     file.CompressionMethod = CompressionMethod.Deflated; // as defined by ePub stndard
     stream.PutNextEntry(file);
 }