home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1997 October
/
Chip_1997-10_cd.bin
/
tema
/
sybase
/
powerj
/
samples.z
/
Web_Crawler.wxc
< prev
next >
Wrap
Text File
|
1997-01-28
|
3KB
|
152 lines
Save Format v2.0(1)
@begin ClassFile "Web_Crawler"
Exported 0;
Abstract 0;
Interface 0;
PackageName "";
Language "Java";
@begin UserFunction "Web_Crawler()"
Compiler 1;
GencodeSrcLine 19;
FunctionName "Web_Crawler::Web_Crawler()";
@end;
@begin UserFunction "main(String args[])"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 30;
FunctionName "Web_Crawler::main(String args[])";
@end;
@begin UserFunction "CreateMainForm()"
Compiler 1;
GencodeFunction 1;
GencodeSrcLine 37;
FunctionName "Web_Crawler::CreateMainForm()";
@end;
@begin UserFunction "StartApp(String args[])"
Compiler 1;
GencodeSrcLine 43;
FunctionName "Web_Crawler::StartApp(String args[])";
@end;
@begin UserFunction "RunApp(String args[])"
Compiler 1;
GencodeSrcLine 47;
FunctionName "Web_Crawler::RunApp(String args[])";
@end;
@begin UserFunction "EndApp(String args[])"
Compiler 1;
GencodeSrcLine 52;
FunctionName "Web_Crawler::EndApp(String args[])";
@end;
@begin HPPPrefixBlock
@begin-code HPPPrefix
// add your custom import statements here
/*
* Web_Crawler.java
*
* Copyright 1996 Sybase, Inc. All rights reserved.
*
* This sample program demonstrates a web crawler
* written in java.
*/
@end-code;
GencodeSrcLine 6;
@end;
@begin ClassContentsBlock
@begin-code ClassContents
// add your data members here
@end-code;
GencodeSrcLine 56;
@end;
@begin-code BaseClassList
extends Object
@end-code;
@begin-code GeneratedClassContents
@end-code;
@begin-code Code "Web_Crawler::Web_Crawler()"
//****************************
/**
* This is the main class that starts up the @CLASSNAME@
* application.
*/
public @CLASSNAME@()
//****************************
{
super();
}
@end-code;
@begin-code Code "Web_Crawler::main(String args[])"
public static void main(String args[])
{
@@CLASSNAME@ app = new @CLASSNAME@();
app.StartApp(args);
app.RunApp(args);
app.EndApp(args);
}
@end-code;
@begin-code Code "Web_Crawler::CreateMainForm()"
public void CreateMainForm()
{
WebCrawler form = new WebCrawler();
form.setMainWindow(true);
form.create();
}
@end-code;
@begin-code Code "Web_Crawler::StartApp(String args[])"
public void StartApp(String args[])
//****************************
{
}
@end-code;
@begin-code Code "Web_Crawler::RunApp(String args[])"
public void RunApp(String args[])
//****************************
{
CreateMainForm();
}
@end-code;
@begin-code Code "Web_Crawler::EndApp(String args[])"
public void EndApp(String args[])
//****************************
{
}
@end-code;
@end;