T
- the type of source from which ChartOuterClass.Chart
s 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.
Modifier | Constructor and Description |
---|---|
protected |
AbstractChartLoader()
Creates a new
AbstractChartLoader . |
Modifier and Type | Method and Description |
---|---|
abstract ChartOuterClass.Chart.Builder |
load(ChartOuterClass.Chart.Builder parent,
T source)
Creates a new
ChartOuterClass.Chart.Builder from the supplied source
and returns it. |
ChartOuterClass.Chart.Builder |
load(T source)
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) 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 null
ChartOuterClass.Chart.Builder
; never null
NullPointerException
- if source
is null
IOException
- if reading the supplied source
could not complete normallyload(ChartOuterClass.Chart.Builder, Object)
public abstract ChartOuterClass.Chart.Builder load(ChartOuterClass.Chart.Builder parent, T source) 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 null
ChartOuterClass.Chart.Builder
; never null
; never parent
NullPointerException
- if source
is null
IOException
- if reading the supplied source
could not complete normallyCopyright © 2017–2018, microBean. All rights reserved.