Package

Examples of HTMLReaderHome


   public static void main(String[] args) {
       try {
           Context initial = new InitialContext();
           Object objref = initial.lookup("java:comp/env/ejb/SimpleHTMLReader");

           HTMLReaderHome home =
               (HTMLReaderHome)PortableRemoteObject.narrow(objref,
                                            HTMLReaderHome.class);

           HTMLReader htmlReader = home.create();
           StringBuffer contents = htmlReader.getContents();
     System.out.println("The contents of the HTML page follows:\n");
           System.out.print(contents);

           System.exit(0);
View Full Code Here

TOP

Related Classes of HTMLReaderHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.