public class TapeArchiveChartLoader extends StreamOrientedChartLoader<TarInputStream>
StreamOrientedChartLoader<TarInputStream> that creates
ChartOuterClass.Chart instances from TarInputStream instances.toNamedInputStreamEntries(TarInputStream),
StreamOrientedChartLoader| Constructor and Description |
|---|
TapeArchiveChartLoader()
Creates a new
TapeArchiveChartLoader. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing on purpose.
|
protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> |
toNamedInputStreamEntries(TarInputStream stream)
Converts the supplied
TarInputStream 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, loadloadpublic TapeArchiveChartLoader()
TapeArchiveChartLoader.protected Iterable<? extends Map.Entry<? extends String,? extends InputStream>> toNamedInputStreamEntries(TarInputStream stream) throws IOException
TarInputStream 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<TarInputStream>stream - the TarInputStream to read; must be
non-null or an effectively empty Iterable will be
returnednull Iterable of Map.Entry
instances representing named InputStreamsIOException - if there is a problem reading from the
supplied TarInputStreampublic void close() throws IOException
IOException - if a subclass has overridden this method
and an error occursCopyright © 2017–2018, microBean. All rights reserved.