epub-metadata-4.0: Library for parsing epub document metdata

Safe HaskellNone

Codec.Epub.IO

Description

Functions for performing some IO operations on epub files

Synopsis

Documentation

getPkgXmlFromZipSource

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

path to epub zip file

-> m String

contents of the epub Package Document

Get the contents of the epub Package Document from an epub (zip) file

getPkgPathXmlFromZipSource

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

path to epub zip file

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from an epub (zip) file

getPkgPathXmlFromBSSource

Arguments

:: (MonadError String m, MonadIO m) 
=> ByteString

contents of the zip file

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from a ByteString representing an epub (zip) file

getPkgPathXmlFromDirSource

Arguments

:: (MonadError String m, MonadIO m) 
=> FilePath

directory path

-> m (FilePath, String)

path (within the epub archive) and contents of the epub Package Document

Get the path and contents of the epub Package Document from a directory containing the files from an epub file (as in: it's been unzipped into a dir)

mkEpubArchive :: FilePath -> IO ArchiveSource

Construct a zip Archive containing epub book data from the specified directory

readArchive :: FilePath -> IO ArchiveSource

Read a zip Archive from disk

writeArchive :: FilePath -> Archive -> IO ()Source

Write a zip Archive to disk using the specified filename