org.apache.poi.hwpf.model
Interface CharIndexTranslator

All Known Implementing Classes:
TextPieceTable

public interface CharIndexTranslator


Method Summary
 int getCharIndex(int bytePos)
          Calculates the char index of the given byte index.
 boolean isUnicodeAtByteOffset(int bytePos)
          Is the text at the given byte offset unicode, or plain old ascii? In a very evil fashion, you have to actually know this to make sense of character and paragraph properties :(
 

Method Detail

getCharIndex

int getCharIndex(int bytePos)
Calculates the char index of the given byte index.

Parameters:
bytePos - The character offset to check
Returns:
the char index

isUnicodeAtByteOffset

boolean isUnicodeAtByteOffset(int bytePos)
Is the text at the given byte offset unicode, or plain old ascii? In a very evil fashion, you have to actually know this to make sense of character and paragraph properties :(

Parameters:
bytePos - The character offset to check about
Returns:
true if the text at the given byte offset is unicode


Copyright 2009 The Apache Software Foundation or its licensors, as applicable.