|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.qedeq.base.io.TextInput
org.qedeq.base.io.SubTextInput
public class SubTextInput
Wraps a text output stream.
| Field Summary |
|---|
| Fields inherited from class org.qedeq.base.io.TextInput |
|---|
CR, EOF |
| Constructor Summary | |
|---|---|
SubTextInput(java.lang.String source)
Constructor. |
|
SubTextInput(SubTextInput original,
int absoluteStart,
int absoluteEnd)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getAbsoluteEnd()
Get the absolute end position of the current SubTextInput. |
int |
getAbsolutePosition()
Get the absolute position of the current position. |
int |
getAbsoluteStart()
Get the absolute start position of the current SubTextInput. |
java.lang.String |
getAbsoluteSubstring(int absoluteFrom,
int absoluteTo)
Get sub string of source. |
SubTextInput |
getSubTextInput(int absoluteFrom,
int absoluteTo)
Get sub string of source as a new SubTextInput. |
void |
setAbsolutePosition(int absolutePosition)
Set the current position by calculating the relative position from the given absolute position. |
| Methods inherited from class org.qedeq.base.io.TextInput |
|---|
addColumn, addPosition, addRow, asString, forward, forward, getChar, getChar, getColumn, getLine, getMaximumPosition, getPosition, getPosition, getPosition, getRow, getSourceArea, getSourcePosition, getSubstring, isEmpty, isEmpty, read, readCounter, readInverse, readLetterDigitString, readNextAttributeValue, readNextXmlName, readNonNegativeInt, readQuoted, readString, readStringTilWhitespace, replace, setColumn, setPosition, setPosition, setRow, showLinePosition, skipBackToBeginOfXmlTag, skipForwardToEndOfXmlTag, skipToEndOfLine, skipWhiteSpace, skipWhiteSpaceInverse |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, read, reset, skip |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SubTextInput(java.lang.String source)
source - Text input.
public SubTextInput(SubTextInput original,
int absoluteStart,
int absoluteEnd)
original - Parent input.absoluteStart - Input part starts here.absoluteEnd - Input part ends here.| Method Detail |
|---|
public int getAbsoluteStart()
SubTextInput.
public int getAbsoluteEnd()
SubTextInput.
public int getAbsolutePosition()
public void setAbsolutePosition(int absolutePosition)
absolutePosition - This should be the absolute position.
public java.lang.String getAbsoluteSubstring(int absoluteFrom,
int absoluteTo)
absoluteFrom - Absolute start of sub string.absoluteTo - Absolute end of sub string.
public SubTextInput getSubTextInput(int absoluteFrom,
int absoluteTo)
SubTextInput. The given parameters have
values for the underlying original SubTextInput at the base.
absoluteFrom - Absolute start of sub string.absoluteTo - Absolute end of sub string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||