maiolum.plainxml.indexing
Class UTF8RangedReader
java.lang.Object
maiolum.plainxml.indexing.UTF8RangedReader
- public class UTF8RangedReader
- extends java.lang.Object
Reads given UTF-8 encoded textfile and provides method to read
only a part of this file. Part is specified by position
of first character to read to the position of the last character
to read.
|
Method Summary |
void |
close()
|
static void |
main(java.lang.String[] args)
|
java.lang.String |
read()
|
java.lang.String |
read(long from,
long to)
|
void |
reset()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UTF8RangedReader
public UTF8RangedReader(java.lang.String filename)
throws java.io.IOException
reset
public void reset()
throws java.lang.UnsupportedOperationException
- Throws:
java.lang.UnsupportedOperationException
read
public java.lang.String read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public java.lang.String read(long from,
long to)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception