aspose file tools*
The moose likes Java in General and the fly likes Need help on a java topic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Need help on a java topic " Watch "Need help on a java topic " New topic
Author

Need help on a java topic

Prag Tyagi
Greenhorn

Joined: Sep 28, 2011
Posts: 6
I need help on a java code . I need to fetch a log file from a remote server for a particular timestamp . can some one help me out with the code . please don't refer the link http://commons.apache.org/vfs/api.html
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10329
    
    8

Welcome to the Ranch.

Prag Tyagi wrote:As i am new to java can some one give me the complete classes UML structure which will be involved . Code i will put into place .

Please read http://www.coderanch.com/how-to/java/NotACodeMill
What have you got so far and where are you stuck?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38726
    
  23
Welcome to the Ranch

It would have been better to let us know what sort of java topic you are interested in.
We do not give out complete code. Unless you are offering to pay somebody to code it for you, you should show us how far you have got and say what problems you are suffering.
Prag Tyagi
Greenhorn

Joined: Sep 28, 2011
Posts: 6
The thing is that i have fetched the details from the property file . Now in the property file some logs files are mentioned which are being fetched . All i want is a way as to how i can fetch the log files from a remote server . For that i need some class structure . If some one can help me out .
Prag Tyagi
Greenhorn

Joined: Sep 28, 2011
Posts: 6
I have fetched a log file names . Now i have to fetch those log files from file server .
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10329
    
    8

How are you connecting to the server? Is this a web application?
Prag Tyagi
Greenhorn

Joined: Sep 28, 2011
Posts: 6
It's a java application . A tool . And there is where the problem starts . the requirement is connect to a SFTP server in order to download the log files . Now i don't know that and how to fetch the log files for a particular time stamp .
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10329
    
    8

Check out http://commons.apache.org/vfs/filesystems.html
Prag Tyagi
Greenhorn

Joined: Sep 28, 2011
Posts: 6
not able to understand what is given over there . http://commons.apache.org/vfs/filesystems.html#SFTP
Ove Lindström
Ranch Hand

Joined: Mar 10, 2008
Posts: 326

Look at the API-spec at http://commons.apache.org/vfs/api.html

There you have an example code. Try to figure out how to use the library.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help on a java topic