public class EncodedStringNavigator extends StringNavigator implements EncodedStringReader
| Modifier and Type | Field and Description |
|---|---|
protected TextDecoder |
textDecoder
Will hold all the processing needed to decode the read string
|
DEFAULT_DATA_BLOCK_DELIM_SIZE, DEFAULT_DATA_BLOCK_SIZE| Constructor and Description |
|---|
EncodedStringNavigator(File textFile)
Constructs the class with the given
|
EncodedStringNavigator(File textFile,
int DataBlockSizeInKelloByte)
Constructs the class with the given
|
EncodedStringNavigator(InputStream dataStream,
int DataBlockSizeInKelloByte)
Constructs the class with the given
|
EncodedStringNavigator(String Text)
Constructs the class with the given text
|
| Modifier and Type | Method and Description |
|---|---|
String |
getText(int charNo,
int code)
Reads the text and fetchs the characters according to the given
charachters no also the pointer is advanced accordingly, the returned
text is decoded according to the given code
|
boolean |
supportsCode(int codeSupported)
This methode will check if the given code is supported or not.
|
availableCharacters, close, EndOfValue, getDataBlockDelimiterSize, getDataBlockSize, getLastReadText, getPosition, getText, getText, isWithDelimiter, jump, reset, setDataBlockDelimiterSize, setDataBlockSize, setText, setWithDelimiterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetText, getText, jumpprotected TextDecoder textDecoder
public EncodedStringNavigator(String Text)
Text - the text for navigationpublic EncodedStringNavigator(File textFile) throws IOException
textFile - the file that contains the text for navigationIOException - if the file does not exist or any error occured while
reading itpublic EncodedStringNavigator(File textFile, int DataBlockSizeInKelloByte) throws IOException
textFile - the file that contains the text for navigationIOException - if the file does not exist or any error occured while
reading itpublic EncodedStringNavigator(InputStream dataStream, int DataBlockSizeInKelloByte) throws IOException
textFile - the file that contains the text for navigationIOException - if the file does not exist or any error occured while
reading itpublic boolean supportsCode(int codeSupported)
codeSupported - the code to testpublic String getText(int charNo, int code)
getText in interface EncodedStringReadergetText in interface StringReadergetText in class StringNavigatorcharNo - Number of characters to be readcode - the code of the textCopyright © 2019 com.github.mfjamil. All rights reserved.