|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.util.AbstractCollection
|
+--jeroen.io.Parser
Abstracte parser. Implementeer tryNext().
| Field Summary | |
protected int |
hasNext
Of er een volgend item is. |
protected int |
maxProg
Houdt deze variabelen bij om de statusbalk te laten werken. |
protected Object |
next
Als je hasNext op YES zet, wijs dan aan deze variabele het volgende item toe. |
protected static int |
NO
Waarde voor hasNext. |
protected int |
prog
Houdt deze variabelen bij om de statusbalk te laten werken. |
protected String |
regel
De laatste ingelezen regel. |
protected String |
status
|
protected static int |
YES
Waarde voor hasNext. |
| Constructor Summary | |
Parser(File bestand)
|
|
Parser(URL url)
|
|
| Method Summary | |
int |
getMaxProgress()
Een StatusBroadcaster methode |
int |
getProgress()
Een StatusBroadcaster methode |
String |
getStatusString()
Een StatusBroadcaster methode |
boolean |
isActief()
Een StatusBroadcaster methode |
protected boolean |
isBegin()
Geeft de conditie aan waar het parseable gedeelte begin van de bron. |
Iterator |
iterator()
Geeft de geparsete objecten achtereenvolgens. |
int |
size()
Wordt niet ondersteund. |
protected abstract void |
tryNext()
Deze methode moet kijken of er nog een object is, en eventueel de boolean hasNext en het Object next aanpassen. |
protected String |
volgendeRegel()
Leest een nieuwe regel. |
protected String |
volgendeRegelBR()
Leest een nieuwe regel, en stript de <br> tag ervanaf, indien aanwezig. |
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
equals, hashCode |
| Field Detail |
protected String regel
protected int prog
protected int maxProg
protected String status
protected static final int YES
protected static final int NO
protected int hasNext
protected Object next
| Constructor Detail |
public Parser(File bestand)
throws IOException,
InterruptedException
public Parser(URL url)
throws IOException,
InterruptedException
| Method Detail |
public int size()
size in class AbstractCollectionpublic Iterator iterator()
iterator in class AbstractCollection
protected final String volgendeRegel()
throws IOException,
InterruptedException
protected final String volgendeRegelBR()
throws IOException,
InterruptedException
protected abstract void tryNext()
throws IOException,
InterruptedException
protected boolean isBegin()
public String getStatusString()
StatusBroadcastergetStatusString in interface StatusBroadcasterpublic int getProgress()
StatusBroadcastergetProgress in interface StatusBroadcasterpublic int getMaxProgress()
StatusBroadcastergetMaxProgress in interface StatusBroadcasterpublic boolean isActief()
StatusBroadcasterisActief in interface StatusBroadcaster
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||