public interface Source
extends java.lang.CharSequence
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the source.
|
void |
deepClose()
Does a deep close of all sources and subsources associated with this
source.
|
Source |
fromActualPosition()
Creates a sub source starting from the actual position.
|
int |
getPosition()
Get the actual read position of the source.
|
boolean |
isEOF()
Checks if the end of the Source is reached.
|
char |
next()
Returns the character at the given position and increases the position.
|
void |
seek(int position)
Seek to the given position
|
Source |
subSource(int start,
int end)
Creates a sub source of this source.
|
Source subSource(int start, int end)
start
- the start positionend
- the end positionSource fromActualPosition()
int getPosition()
void seek(int position) throws java.io.IOException
position
- java.io.IOException
char next() throws java.io.IOException
java.io.IOException
boolean isEOF()
true
if the end of the source is reachedvoid close() throws java.io.IOException
java.io.IOException
void deepClose() throws java.io.IOException
java.io.IOException
Copyright © 2021. All Rights Reserved.