org.grinvin.io

Class ZipInputStreamSectionLoader

Implemented Interfaces:
SectionLoader

public class ZipInputStreamSectionLoader
extends java.lang.Object
implements SectionLoader

Loads sections from a ZipInputStream. Note that each section on the input strean can be accessed at most once.

Constructor Summary

ZipInputStreamSectionLoader(ZipInputStream in)
Default constructor.

Method Summary

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

Constructor Details

ZipInputStreamSectionLoader

public ZipInputStreamSectionLoader(ZipInputStream in)
Default constructor.

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