Package org.ec4j.core
Interface Resource.RandomReader
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
Resource.Resources.StringRandomReader
- Enclosing interface:
Resource
A readed allowing to access a character on any offset in the underlying resource.
-
Method Summary
-
Method Details
-
getLength
long getLength()- Returns:
- the number of characters
-
read
- Parameters:
offset- the index from which the character should be read- Returns:
- the character at the given
offset - Throws:
IndexOutOfBoundsException- if the offset it less than0or greater thangetLength()
-