|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--upidiff.input.InputBuffer
Class to save the File from the inputsource
Field Summary | |
private String[] |
fileLines
An array of strings that saves the file as lines |
private InputSource |
inputSource
Variable for resource from input. |
private int |
lineLength
The length of the longest line |
private int[] |
lineOffset
An array for saving the offsets from the Lines. |
private List |
listFilter
List for saving the active Filter. |
Constructor Summary | |
InputBuffer(InputSource inputSource)
constructor that has the source from the file as argument. |
Method Summary | |
void |
addFilter(InputBufferFilter currentFilter)
add one filter in the list |
private void |
filterThis(Vector lines)
Runs the input filters. |
InputSource |
getInputSource()
Querries the InputSource |
int |
getLineLength()
Methode to get length of the longest line |
int[] |
getlineOffset()
this method gives the offsets from the lines. |
String[] |
getLines()
getMethode from the file . |
void |
readInputLines()
Reads the input lines from the input source. |
void |
removeFilter(InputBufferFilter currentFilter)
remove one filter from the list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String[] fileLines
private int[] lineOffset
private int lineLength
private List listFilter
private InputSource inputSource
Constructor Detail |
public InputBuffer(InputSource inputSource)
inputSource
- The source from the fileMethod Detail |
public void readInputLines() throws InputException
InputException
- This exception is thrown whenever the
InputBuffer fails to read data from the
input data stream.private void filterThis(Vector lines)
lines
- Input lines.public void addFilter(InputBufferFilter currentFilter)
currentFilter
- name for new filter.public void removeFilter(InputBufferFilter currentFilter)
currentFilter
- filter must be removed .public int[] getlineOffset()
public String[] getLines()
public int getLineLength()
public InputSource getInputSource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |