public class LengthArrayProducer extends DefaultLengthListHandler
| Modifier and Type | Field and Description |
|---|---|
protected int |
count
The total number of lengths accumulated.
|
protected short |
currentUnit
The unit for the current length.
|
protected int |
index
The index in which to store the next length.
|
protected short[] |
u
The current
short[] object. |
protected java.util.LinkedList |
us
List of
short[] objects. |
protected float[] |
v
The current
float[] object. |
protected java.util.LinkedList |
vs
List of
float[] objects. |
INSTANCE| Constructor and Description |
|---|
LengthArrayProducer() |
| Modifier and Type | Method and Description |
|---|---|
void |
cm()
Implements
LengthHandler.cm(). |
void |
em()
Implements
LengthHandler.em(). |
void |
endLength()
Implements
LengthHandler.endLength(). |
void |
endLengthList()
Invoked when the length list attribute ends.
|
void |
ex()
Implements
LengthHandler.ex(). |
short[] |
getLengthTypeArray()
Returns the array of length units accumulated.
|
float[] |
getLengthValueArray()
Returns the array of length values accumulated.
|
void |
in()
Implements
LengthHandler.in(). |
void |
lengthValue(float val)
Implements
LengthHandler.lengthValue(float). |
void |
mm()
Implements
LengthHandler.mm(). |
void |
numberValue(float v)
Invoked when a float value has been parsed.
|
void |
pc()
Implements
LengthHandler.pc(). |
void |
percentage()
Implements
LengthHandler.percentage(). |
void |
pt()
Implements
LengthHandler.pt(). |
void |
px()
Implements
LengthHandler.px(). |
void |
startLength()
Implements
LengthHandler.startLength(). |
void |
startLengthList()
Invoked when the length list attribute starts.
|
protected java.util.LinkedList vs
float[] objects.protected float[] v
float[] object.protected java.util.LinkedList us
short[] objects.protected short[] u
short[] object.protected int index
protected int count
protected short currentUnit
public short[] getLengthTypeArray()
public float[] getLengthValueArray()
public void startLengthList()
throws ParseException
startLengthList in interface LengthListHandlerstartLengthList in class DefaultLengthListHandlerParseException - if an error occures while processing the
number list.public void numberValue(float v)
throws ParseException
ParseException - if an error occures while processing
the numberpublic void lengthValue(float val)
throws ParseException
LengthHandler.lengthValue(float).lengthValue in interface LengthHandlerlengthValue in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void startLength()
throws ParseException
LengthHandler.startLength().startLength in interface LengthHandlerstartLength in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void endLength()
throws ParseException
LengthHandler.endLength().endLength in interface LengthHandlerendLength in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void em()
throws ParseException
LengthHandler.em().em in interface LengthHandlerem in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void ex()
throws ParseException
LengthHandler.ex().ex in interface LengthHandlerex in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void in()
throws ParseException
LengthHandler.in().in in interface LengthHandlerin in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void cm()
throws ParseException
LengthHandler.cm().cm in interface LengthHandlercm in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void mm()
throws ParseException
LengthHandler.mm().mm in interface LengthHandlermm in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void pc()
throws ParseException
LengthHandler.pc().pc in interface LengthHandlerpc in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void pt()
throws ParseException
LengthHandler.pt().pt in interface LengthHandlerpt in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void px()
throws ParseException
LengthHandler.px().px in interface LengthHandlerpx in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void percentage()
throws ParseException
LengthHandler.percentage().percentage in interface LengthHandlerpercentage in class DefaultLengthHandlerParseException - if an error occures while processing
the lengthpublic void endLengthList()
throws ParseException
endLengthList in interface LengthListHandlerendLengthList in class DefaultLengthListHandlerParseException - if an error occures while processing the
number list.Copyright © 2022 Apache Software Foundation. All Rights Reserved.