public class FloatArrayProducer extends DefaultNumberListHandler implements PointsHandler
| Modifier and Type | Field and Description |
|---|---|
protected float[] |
a
The current
float[] object. |
protected LinkedList |
as
List of
float[] objects. |
protected int |
count
The total number of floats accumulated.
|
protected int |
index
The index in which to store the next number.
|
INSTANCE| Constructor and Description |
|---|
FloatArrayProducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
endNumberList()
Invoked when the number list attribute ends.
|
void |
endPoints()
Implements
PointsHandler.endPoints(). |
float[] |
getFloatArray()
Returns the array of floats accumulated.
|
void |
numberValue(float v)
Invoked when a float value has been parsed.
|
void |
point(float x,
float y)
Implements
PointsHandler.point(float,float). |
void |
startNumberList()
Invoked when the number list attribute starts.
|
void |
startPoints()
Implements
PointsHandler.startPoints(). |
endNumber, startNumberprotected LinkedList as
float[] objects.protected float[] a
float[] object.protected int index
protected int count
public float[] getFloatArray()
public void startNumberList()
throws ParseException
startNumberList in interface NumberListHandlerstartNumberList in class DefaultNumberListHandlerParseException - if an error occures while processing the
number list.public void numberValue(float v)
throws ParseException
numberValue in interface NumberListHandlernumberValue in class DefaultNumberListHandlerParseException - if an error occures while processing
the numberpublic void endNumberList()
throws ParseException
endNumberList in interface NumberListHandlerendNumberList in class DefaultNumberListHandlerParseException - if an error occures while processing the
number list.public void startPoints()
throws ParseException
PointsHandler.startPoints().startPoints in interface PointsHandlerParseException - if an error occured while processing the
pointspublic void point(float x,
float y)
throws ParseException
PointsHandler.point(float,float).point in interface PointsHandlerx - the x coordinate of the pointy - the y coordinate of the pointParseException - if an error occured while processing the
pointspublic void endPoints()
throws ParseException
PointsHandler.endPoints().endPoints in interface PointsHandlerParseException - if an error occured while processing the
pointsCopyright © 2000–2017 Apache Software Foundation. All rights reserved.