import java.net.*;
import java.io.*;
public class TarExample {
public static void main (String [] args) throws Exception {
String tarfile= "file:/home/pat/mail.tar";
URL url = new URL(tarfile);
String s = (String)url.getContent();
System.out.println( s );
}
}
|