Package org.apache.fop.afp.fonts
Class CharactersetEncoder.EncodedChars
java.lang.Object
org.apache.fop.afp.fonts.CharactersetEncoder.EncodedChars
- Enclosing class:
- CharactersetEncoder
A container for encoded character bytes
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
EncodedChars
(byte[] bytes, boolean isDBCS) private
EncodedChars
(byte[] bytes, int offset, int length, boolean isDBCS) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
The bytesint
The number of containing bytes.boolean
isDBCS()
Indicates whether or not the EncodedChars object wraps double byte characters.void
writeTo
(OutputStream out, int offset, int length) writelength
bytes fromoffset
to the output stream
-
Field Details
-
bytes
private final byte[] bytes -
offset
private final int offset -
length
private final int length -
isDBCS
private final boolean isDBCS
-
-
Constructor Details
-
EncodedChars
private EncodedChars(byte[] bytes, int offset, int length, boolean isDBCS) -
EncodedChars
private EncodedChars(byte[] bytes, boolean isDBCS)
-
-
Method Details
-
writeTo
writelength
bytes fromoffset
to the output stream- Parameters:
out
- output to write the bytes tooffset
- the offset where to writelength
- the length to write- Throws:
IOException
- if an I/O error occurs
-
getLength
public int getLength()The number of containing bytes.- Returns:
- the length
-
isDBCS
public boolean isDBCS()Indicates whether or not the EncodedChars object wraps double byte characters.- Returns:
- true if the wrapped characters are double byte (DBCSs)
-
getBytes
public byte[] getBytes()The bytes- Returns:
- the bytes
-