|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unipd.dei.ims.circo.lucene.demo.ClefDocumentLexer
public final class ClefDocumentLexer
Provides a basic parser for CLEF collections. The following collections are supported:
| Field Summary | |
|---|---|
static int |
AAMU
|
static int |
AAMUDOCNO
|
static int |
AAMUTEXT
|
static int |
AAMUTITLE
|
static int |
AD
|
static int |
ADDOCNO
|
static int |
ADTEXT
|
static int |
ADTEXT2
|
static int |
ADTITLE
|
static int |
AGZ
|
static int |
AGZDOCNO
|
static int |
AGZTEXT
|
static int |
AGZTITLE
|
static int |
ATS
|
static int |
ATSDOCNO
|
static int |
ATSTEXT
|
static int |
ATSTITLE
|
static int |
DOC
|
static int |
EFE
|
static int |
EFEDOCNO
|
static int |
EFETEXT
|
static int |
EFETITLE
|
static int |
FRANKFURT
|
static int |
FRANKFURTDOCNO
lexical states |
static int |
FRANKFURTTEXT
|
static int |
FRANKFURTTITLE
|
static int |
GLASGOW
|
static int |
GLASGOWDOCNO
|
static int |
GLASGOWTEXT
|
static int |
GLASGOWTITLE
|
static int |
IZV
|
static int |
IZVDOCNO
|
static int |
IZVTEXT
|
static int |
IZVTITLE
|
static int |
LASTAMPA
|
static int |
LASTAMPADOCNO
|
static int |
LASTAMPATEXT
|
static int |
LASTAMPATITLE
|
static int |
LATIMES
|
static int |
LATIMESDOCNO
|
static int |
LATIMESTEXT
|
static int |
LATIMESTITLE
|
static int |
LEMONDE
|
static int |
LEMONDEDOCNO
|
static int |
LEMONDETEXT
|
static int |
LEMONDETITLE
|
static int |
MAGYAR
|
static int |
MHDOCNO
|
static int |
MHTEXT
|
static int |
MHTITLE
|
static int |
NH
|
static int |
NHDOCNO
|
static int |
NHTEXT
|
static int |
NHTEXT2
|
static int |
NHTITLE
|
static int |
SDA
|
static int |
SDADOCNO
|
static int |
SDATEXT
|
static int |
SDATITLE
|
static int |
SEGA
|
static int |
SEGADOCNO
|
static int |
SEGATEXT
|
static int |
SEGATITLE
|
static int |
SPIEGEL
|
static int |
SPIEGELDOCNO
|
static int |
SPIEGELTEXT
|
static int |
SPIEGELTITLE
|
static int |
YYEOF
This character denotes the end of file |
static int |
YYINITIAL
|
| Constructor Summary | |
|---|---|
ClefDocumentLexer(java.io.File f)
|
|
ClefDocumentLexer(java.io.InputStream in)
Creates a new scanner. |
|
ClefDocumentLexer(java.io.Reader in)
Creates a new scanner There is also a java.io.InputStream version of this constructor. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String[]> |
docs()
|
boolean |
endFile()
|
java.util.Map<java.lang.String,java.lang.String[]> |
getDocuments()
|
void |
yybegin(int newState)
Enters a new lexical state |
char |
yycharat(int pos)
Returns the character at position pos from the matched text. |
void |
yyclose()
Closes the input stream. |
int |
yylength()
Returns the length of the matched text region. |
int |
yylex()
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs. |
void |
yypushback(int number)
Pushes the specified amount of characters back into the input stream. |
void |
yyreset(java.io.Reader reader)
Resets the scanner to read from a new input stream. |
int |
yystate()
Returns the current lexical state. |
java.lang.String |
yytext()
Returns the text matched by the current regular expression. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int YYEOF
public static final int FRANKFURTDOCNO
public static final int ADDOCNO
public static final int LASTAMPATEXT
public static final int IZVTITLE
public static final int AGZTEXT
public static final int MHTITLE
public static final int AD
public static final int NHTITLE
public static final int IZVDOCNO
public static final int MHDOCNO
public static final int AAMU
public static final int NHDOCNO
public static final int LATIMESTEXT
public static final int LASTAMPATITLE
public static final int ATS
public static final int SEGATITLE
public static final int LEMONDE
public static final int SEGA
public static final int LASTAMPADOCNO
public static final int SPIEGELTEXT
public static final int SEGADOCNO
public static final int IZV
public static final int SPIEGEL
public static final int EFETEXT
public static final int LEMONDETITLE
public static final int YYINITIAL
public static final int AGZ
public static final int FRANKFURT
public static final int LEMONDEDOCNO
public static final int SEGATEXT
public static final int SDATEXT
public static final int LATIMES
public static final int AGZTITLE
public static final int EFE
public static final int NHTEXT
public static final int ADTEXT2
public static final int AGZDOCNO
public static final int SDA
public static final int NHTEXT2
public static final int AAMUTITLE
public static final int AAMUTEXT
public static final int AAMUDOCNO
public static final int DOC
public static final int LATIMESTITLE
public static final int GLASGOWTITLE
public static final int FRANKFURTTEXT
public static final int LATIMESDOCNO
public static final int ATSTEXT
public static final int MAGYAR
public static final int GLASGOWDOCNO
public static final int GLASGOW
public static final int NH
public static final int LEMONDETEXT
public static final int ADTEXT
public static final int ATSTITLE
public static final int SPIEGELTITLE
public static final int EFETITLE
public static final int ATSDOCNO
public static final int LASTAMPA
public static final int MHTEXT
public static final int SPIEGELDOCNO
public static final int SDATITLE
public static final int EFEDOCNO
public static final int FRANKFURTTITLE
public static final int ADTITLE
public static final int IZVTEXT
public static final int SDADOCNO
public static final int GLASGOWTEXT
| Constructor Detail |
|---|
public ClefDocumentLexer(java.io.File f)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionpublic ClefDocumentLexer(java.io.Reader in)
in - the java.io.Reader to read input from.public ClefDocumentLexer(java.io.InputStream in)
in - the java.io.Inputstream to read input from.| Method Detail |
|---|
public java.util.Map<java.lang.String,java.lang.String[]> docs()
public boolean endFile()
public java.util.Map<java.lang.String,java.lang.String[]> getDocuments()
public final void yyclose()
throws java.io.IOException
java.io.IOExceptionpublic final void yyreset(java.io.Reader reader)
reader - the new input streampublic final int yystate()
public final void yybegin(int newState)
newState - the new lexical statepublic final java.lang.String yytext()
public final char yycharat(int pos)
pos - the position of the character to fetch. A value from 0 to
yylength()-1.
public final int yylength()
public void yypushback(int number)
number - the number of characters to be read again. This number must
not be greater than yylength()!
public int yylex()
throws java.io.IOException
java.io.IOException - if any I/O-Error occurs
|
Copyright © 2008-2009 Information Management Systems (IMS) research group, Department of Information Engineering, University of Padua, Italy. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||