public class ZipInputStreamChartLoader extends StreamOrientedChartLoader<ZipInputStream>
StreamOrientedChartLoader<ZipInputStream>
that creates
ChartOuterClass.Chart
instances from ZipInputStream
instances.toNamedInputStreamEntries(ZipInputStream)
,
StreamOrientedChartLoader
Constructor and Description |
---|
ZipInputStreamChartLoader()
Creates a new
ZipInputStreamChartLoader . |
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing on purpose.
|
protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> |
toNamedInputStreamEntries(ZipInputStream stream)
Converts the supplied
ZipInputStream into an Iterable of Map.Entry instances, each of which consists of
an InputStream representing an entry within the archive
together with its name. |
createTemplateBuilder, installAny, installConfig, installMetadata, load, load
load
public ZipInputStreamChartLoader()
ZipInputStreamChartLoader
.protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> toNamedInputStreamEntries(ZipInputStream stream) throws IOException
ZipInputStream
into an Iterable
of Map.Entry
instances, each of which consists of
an InputStream
representing an entry within the archive
together with its name.
This method never returns null
.
Overrides of this method are not permitted to return null
.
toNamedInputStreamEntries
in class StreamOrientedChartLoader<ZipInputStream>
stream
- the ZipInputStream
to read; must be
non-null
or an effectively empty Iterable
will be
returnednull
Iterable
of Map.Entry
instances representing named InputStream
sIOException
- if there is a problem reading from the
supplied ZipInputStream
public void close() throws IOException
IOException
- if a subclass has overridden this method
and an error occursCopyright © 2017–2018, microBean. All rights reserved.