T - the type of source from which ChartOuterClass.Charts may be loadedpublic abstract class AbstractChartLoader<T> extends Object implements Closeable
ChartOuterClass.Chart instances from such raw
materials.
Implementations should pay close attention to any potential resource
leaks and control them in their implementation of the
Closeable.close() method.
load(Object),
ChartOuterClass.Chart| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractChartLoader()
Creates a new
AbstractChartLoader. |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract ChartOuterClass.Chart.Builder |
load(ChartOuterClass.Chart.Builder parent,
T source,
String valueName)
Creates a new
ChartOuterClass.Chart.Builder from the supplied source and returns
it. |
ChartOuterClass.Chart.Builder |
load(T source) |
ChartOuterClass.Chart.Builder |
load(T source,
String valueName)
Creates a new "top-level"
ChartOuterClass.Chart.Builder from the supplied source
and returns it. |
protected AbstractChartLoader()
AbstractChartLoader.public final ChartOuterClass.Chart.Builder load(T source, String valueName) throws IOException
ChartOuterClass.Chart.Builder from the supplied source
and returns it.
Implementations of this method must not return null.
source - the source from which a new ChartOuterClass.Chart.Builder should be
created; must not be nullvalueName - value filenameChartOuterClass.Chart.Builder; never nullNullPointerException - if source is nullIOException - if reading the supplied source could
not complete normallypublic final ChartOuterClass.Chart.Builder load(T source) throws IOException
IOExceptionpublic abstract ChartOuterClass.Chart.Builder load(ChartOuterClass.Chart.Builder parent, T source, String valueName) throws IOException
ChartOuterClass.Chart.Builder from the supplied source and returns
it.
Implementations of this method must not return null and must not
return parent.
parent - the ChartOuterClass.Chart.Builder that will serve as the parent of the
ChartOuterClass.Chart.Builder that will be returned; may be (and often is)
null, indicating that the ChartOuterClass.Chart.Builder being
returned does not represent a subchart; must not be what is
returnedsource - the source from which a new ChartOuterClass.Chart.Builder should be created;
must not be nullChartOuterClass.Chart.Builder; never null; never parentNullPointerException - if source is nullIOException - if reading the supplied source could
not complete normallyCopyright © 2020. All rights reserved.