pdf-toolbox-core-0.0.3.0: A collection of tools for processing PDF files.

Safe HaskellNone
LanguageHaskell98

Pdf.Toolbox.Core.IO.RIS

Description

Input stream with random access

Synopsis

Documentation

type IS = InputStream ByteString Source

Sequential input stream

newtype RIS Source

Random access Input Stream

Constructors

RIS (IORef RIS') 

data RIS' Source

Internal state of RIS

Constructors

RIS' 

seek :: RIS -> Int64 -> IO () Source

Seek the stream

size :: RIS -> IO Int64 Source

Number of bytes in the stream

tell :: RIS -> IO Int64 Source

Current position in bytes

inputStream :: RIS -> IO IS Source

Get sequential input stream, that is valid until the next seek

fromHandle :: Handle -> IO RIS Source

Create RIS from Handle with default chunk size

fromHandle' :: Handle -> Int -> IO RIS Source

Create RIS from Handle with the specified chunk size