internal void Save(MemoryStream ms) { var doc = new CompoundDocumentFile(); WriteStorageAndStreams(Storage, doc.RootItem); doc.Write(ms); }
internal void Read(MemoryStream ms) { using (var doc = new CompoundDocumentFile(ms)) { Storage = new StoragePart(); GetStorageAndStreams(Storage, doc.RootItem); } }
internal void Read(FileInfo fi) { using (var doc = new CompoundDocumentFile(fi, tempFolder)) { Storage = new StoragePart(); GetStorageAndStreams(Storage, doc.RootItem); } }
internal static bool IsCompoundDocument(MemoryStream ms) { return(CompoundDocumentFile.IsCompoundDocument(ms)); }
internal static bool IsCompoundDocument(FileInfo fi) { return(CompoundDocumentFile.IsCompoundDocument(fi)); }