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.IOExceptionchar next() throws java.io.IOException
java.io.IOExceptionboolean isEOF()
true if the end of the source is reachedvoid close()
    throws java.io.IOException
java.io.IOExceptionvoid deepClose()
        throws java.io.IOException
java.io.IOExceptionCopyright © 2021. All Rights Reserved.