org.grinvin.io

Class ZipFileSectionLoader

Implemented Interfaces:
SectionLoader

public class ZipFileSectionLoader
extends java.lang.Object
implements SectionLoader

Section loader which loads sections from zip files.

Constructor Summary

ZipFileSectionLoader(ZipFile zip)
Construct a section

Method Summary

InputStream
openSection(String name)
Open the section with the given name and return an input stream for that section.

Constructor Details

ZipFileSectionLoader

public ZipFileSectionLoader(ZipFile zip)
Construct a section

Method Details

openSection

public InputStream openSection(String name)
            throws IOException
Open the section with the given name and return an input stream for that section. Return null when no section with this name exists.
Specified by:
openSection in interface SectionLoader