A library for creating "pagefiles" from streams