|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jqurantree.arabic.encoding.ArabicEncoderBase org.jqurantree.arabic.encoding.simple.SimpleEncoder
public class SimpleEncoder
Supports encoding ArabicText
into simple
encoding. This class is used by the
ArabicText.toSimpleEncoding()
method. Simple
encoding is an easy to read encoding scheme that shows the name of each
letter within Arabic text, together with the names of any attached
diacritics. Each character will be seperated by a | sign (vertical bar), with
diacritics within a character seperated by a + (plus) sign.
Field Summary |
---|
Fields inherited from class org.jqurantree.arabic.encoding.ArabicEncoderBase |
---|
text |
Constructor Summary | |
---|---|
SimpleEncoder()
Creates a new simple encoder. |
Method Summary | |
---|---|
protected void |
encodeCharacter(byte[] buffer,
int offset)
Encodes a single ArabicCharacter in the
internal ByteFormat . |
protected void |
writeCharacterSeperator()
Overriden by derived encoders to write a seperator between each ArabicCharacter . |
Methods inherited from class org.jqurantree.arabic.encoding.ArabicEncoderBase |
---|
encode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleEncoder()
Method Detail |
---|
protected void encodeCharacter(byte[] buffer, int offset)
ArabicEncoderBase
ArabicCharacter
in the
internal ByteFormat
.
encodeCharacter
in class ArabicEncoderBase
buffer
- the byte[]
buffer holding the characteroffset
- the offset of the character within the bufferprotected void writeCharacterSeperator()
ArabicEncoderBase
ArabicCharacter
.
writeCharacterSeperator
in class ArabicEncoderBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |