|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.knowceans.corpus.parsers.nips.NipsDownload
public class NipsDownload
Saves a defined set of URLs to disk. This usually is the FIRST task in creating a NIPS corpus.
Field Summary | |
---|---|
(package private) java.lang.String |
localroot
|
(package private) java.lang.String |
remoteroot
|
Constructor Summary | |
---|---|
NipsDownload(java.lang.String localroot)
|
Method Summary | |
---|---|
private static void |
download(java.net.URL url,
java.lang.String filename)
Saves the url content to the filename |
void |
downloadHtml()
Downloads the HMTL pages to the |
void |
downloadPdfLinks()
downloads all pdf links contained in the downloaded overview html pages |
static void |
main(java.lang.String[] args)
|
java.lang.String |
readFile(java.lang.String filename)
reads local file |
void |
relinkHtml()
|
void |
writeFile(java.lang.String filename,
java.lang.String content)
write String to the file |
private static java.lang.String |
zeropad(int i)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String localroot
java.lang.String remoteroot
Constructor Detail |
---|
public NipsDownload(java.lang.String localroot)
localroot
- Method Detail |
---|
public static void main(java.lang.String[] args)
public void downloadHtml()
public void downloadPdfLinks()
public void relinkHtml()
public java.lang.String readFile(java.lang.String filename)
filename
-
public void writeFile(java.lang.String filename, java.lang.String content)
filename
- content
- private static void download(java.net.URL url, java.lang.String filename)
url
- filename
- private static java.lang.String zeropad(int i)
i
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |