|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy
net.sourceforge.jbarcodebean.model.Interleaved25
public class Interleaved25
This class, which implements the BarcodeStrategy interface,
knows how to encode the 3:1 (wide)
variant of the Interleaved Code 2 of 5 barcode type.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy |
|---|
AbstractBarcodeStrategy.CharacterCode |
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.jbarcodebean.model.BarcodeStrategy |
|---|
MANDATORY_CHECKSUM, NO_CHECKSUM, OPTIONAL_CHECKSUM |
| Constructor Summary | |
|---|---|
Interleaved25()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
augmentWithChecksum(java.lang.String text)
Returns a String containing the checksum-encoded version of the text passed to the method. |
protected java.lang.String |
getBarcodeLabelText(java.lang.String text)
Returns text unmodified. |
protected AbstractBarcodeStrategy.CharacterCode[] |
getCodes()
This implementation of getCodes returns an array of CharacterCode objects
for the wide Interleaved Code25 format. |
protected byte |
getMarginWidth()
Always returns 11 (eleven). |
protected char |
getStartSentinel()
Always returns 'A'. |
protected char |
getStopSentinel()
Always returns 'B'. |
protected boolean |
isInterleaved()
Always returns true. |
protected java.lang.String |
postprocess(java.lang.String text)
Adds a leading zero if the length of text is odd. |
protected java.lang.String |
preprocess(java.lang.String text)
No preprocessing performed. |
int |
requiresChecksum()
Always returns BarcodeStrategy.OPTIONAL_CHECKSUM. |
| Methods inherited from class net.sourceforge.jbarcodebean.model.AbstractBarcodeStrategy |
|---|
computeSize, encode, getCharacterCode, getCharacterCode |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Interleaved25()
| Method Detail |
|---|
public int requiresChecksum()
BarcodeStrategy.OPTIONAL_CHECKSUM.
requiresChecksum in interface BarcodeStrategyprotected AbstractBarcodeStrategy.CharacterCode[] getCodes()
CharacterCode objects
for the wide Interleaved Code25 format.
getCodes in class AbstractBarcodeStrategyCharacterCode
objects, one for each possible character
that can be encoded using this strategy.
protected java.lang.String augmentWithChecksum(java.lang.String text)
throws BarcodeException
augmentWithChecksum in class AbstractBarcodeStrategytext - The text to encode (after preprocessing - see
AbstractBarcodeStrategy.preprocess(java.lang.String)).
BarcodeExceptionprotected java.lang.String postprocess(java.lang.String text)
postprocess in class AbstractBarcodeStrategytext - String to process (returned by
AbstractBarcodeStrategy.augmentWithChecksum(java.lang.String)).
protected java.lang.String preprocess(java.lang.String text)
preprocess in class AbstractBarcodeStrategytext - The raw text to encode.
protected boolean isInterleaved()
isInterleaved in class AbstractBarcodeStrategyprotected char getStartSentinel()
getStartSentinel in class AbstractBarcodeStrategyprotected char getStopSentinel()
getStopSentinel in class AbstractBarcodeStrategyprotected byte getMarginWidth()
getMarginWidth in class AbstractBarcodeStrategyprotected java.lang.String getBarcodeLabelText(java.lang.String text)
getBarcodeLabelText in class AbstractBarcodeStrategytext - The raw text to encode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||