commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@apache.org
Subject cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser Main.java
Date Wed, 21 Apr 2004 07:00:06 GMT
burton      2004/04/21 00:00:06

  Added:       feedparser/src/java/org/apache/commons/feedparser Main.java
  Log:
  start of performance optimization... console parser
  
  Revision  Changes    Path
  1.1                  jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/Main.java
  
  Index: Main.java
  ===================================================================
  /*
   * Copyright 1999,2004 The Apache Software Foundation.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * 
   *      http://www.apache.org/licenses/LICENSE-2.0
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  package org.apache.commons.feedparser;
  
  import org.apache.commons.feedparser.impl.*;
  
  import java.io.*;
  import java.net.*;
  import java.util.*;
  
  /**
   * Provides a mechanism to quickly test feed parsing from the command line.
   *
   * @author <a href="mailto:burton@apache.org">Kevin A. Burton (burtonator)</a>
   * @version $Id: Main.java,v 1.1 2004/04/21 07:00:06 burton Exp $
   */
  public class Main {
  
      public static void main( String[] args ) throws Exception {
  
          FeedParser parser = FeedParserFactory.newFeedParser();
  
          FeedParserListener listener = new DebugFeedParserListener();
  
          parser.parse( listener, new FileInputStream( args[0] ) );
  
      }
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message