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 LengthListHandler
startLengthList
in class DefaultLengthListHandler
ParseException
- 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 LengthHandler
lengthValue
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void startLength() throws ParseException
LengthHandler.startLength()
.startLength
in interface LengthHandler
startLength
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void endLength() throws ParseException
LengthHandler.endLength()
.endLength
in interface LengthHandler
endLength
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void em() throws ParseException
LengthHandler.em()
.em
in interface LengthHandler
em
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void ex() throws ParseException
LengthHandler.ex()
.ex
in interface LengthHandler
ex
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void in() throws ParseException
LengthHandler.in()
.in
in interface LengthHandler
in
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void cm() throws ParseException
LengthHandler.cm()
.cm
in interface LengthHandler
cm
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void mm() throws ParseException
LengthHandler.mm()
.mm
in interface LengthHandler
mm
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void pc() throws ParseException
LengthHandler.pc()
.pc
in interface LengthHandler
pc
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void pt() throws ParseException
LengthHandler.pt()
.pt
in interface LengthHandler
pt
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void px() throws ParseException
LengthHandler.px()
.px
in interface LengthHandler
px
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void percentage() throws ParseException
LengthHandler.percentage()
.percentage
in interface LengthHandler
percentage
in class DefaultLengthHandler
ParseException
- if an error occures while processing
the lengthpublic void endLengthList() throws ParseException
endLengthList
in interface LengthListHandler
endLengthList
in class DefaultLengthListHandler
ParseException
- if an error occures while processing the
number list.Copyright © 2022 Apache Software Foundation. All Rights Reserved.