You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2008/09/28 23:21:24 UTC
svn commit: r699895 - in /xerces/java/trunk/samples: dom/ dom/wrappers/ sax/
socket/ socket/io/ xni/ xni/parser/
Author: mrglavas
Date: Sun Sep 28 14:21:24 2008
New Revision: 699895
URL: http://svn.apache.org/viewvc?rev=699895&view=rev
Log:
Reorganized / cleaned up imports using Eclipse.
Modified:
xerces/java/trunk/samples/dom/ParserWrapper.java
xerces/java/trunk/samples/dom/wrappers/Xerces.java
xerces/java/trunk/samples/sax/DocumentTracer.java
xerces/java/trunk/samples/socket/KeepSocketOpen.java
xerces/java/trunk/samples/socket/io/WrappedInputStream.java
xerces/java/trunk/samples/xni/Counter.java
xerces/java/trunk/samples/xni/ObjectFactory.java
xerces/java/trunk/samples/xni/PassThroughFilter.java
xerces/java/trunk/samples/xni/SecuritySupport.java
xerces/java/trunk/samples/xni/parser/AbstractConfiguration.java
Modified: xerces/java/trunk/samples/dom/ParserWrapper.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/dom/ParserWrapper.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/dom/ParserWrapper.java (original)
+++ xerces/java/trunk/samples/dom/ParserWrapper.java Sun Sep 28 14:21:24 2008
@@ -19,7 +19,6 @@
import org.w3c.dom.Document;
import org.w3c.dom.Text;
-
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
Modified: xerces/java/trunk/samples/dom/wrappers/Xerces.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/dom/wrappers/Xerces.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/dom/wrappers/Xerces.java (original)
+++ xerces/java/trunk/samples/dom/wrappers/Xerces.java Sun Sep 28 14:21:24 2008
@@ -17,19 +17,17 @@
package dom.wrappers;
-import dom.ParserWrapper;
-
import org.apache.xerces.dom.TextImpl;
import org.apache.xerces.parsers.DOMParser;
-
import org.w3c.dom.Document;
import org.w3c.dom.Text;
-
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
-import org.xml.sax.SAXParseException;
import org.xml.sax.SAXNotRecognizedException;
import org.xml.sax.SAXNotSupportedException;
+import org.xml.sax.SAXParseException;
+
+import dom.ParserWrapper;
/**
* Wraps the Xerces DOM parser.
Modified: xerces/java/trunk/samples/sax/DocumentTracer.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/sax/DocumentTracer.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/sax/DocumentTracer.java (original)
+++ xerces/java/trunk/samples/sax/DocumentTracer.java Sun Sep 28 14:21:24 2008
@@ -26,8 +26,8 @@
import org.xml.sax.AttributeList;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
-import org.xml.sax.DocumentHandler;
import org.xml.sax.DTDHandler;
+import org.xml.sax.DocumentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.Locator;
import org.xml.sax.Parser;
@@ -36,12 +36,12 @@
import org.xml.sax.SAXNotSupportedException;
import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
+import org.xml.sax.ext.DeclHandler;
+import org.xml.sax.ext.LexicalHandler;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.helpers.ParserAdapter;
import org.xml.sax.helpers.ParserFactory;
import org.xml.sax.helpers.XMLReaderFactory;
-import org.xml.sax.ext.DeclHandler;
-import org.xml.sax.ext.LexicalHandler;
/**
* Provides a complete trace of SAX2 events for files parsed. This is
Modified: xerces/java/trunk/samples/socket/KeepSocketOpen.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/socket/KeepSocketOpen.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/socket/KeepSocketOpen.java (original)
+++ xerces/java/trunk/samples/socket/KeepSocketOpen.java Sun Sep 28 14:21:24 2008
@@ -20,26 +20,23 @@
import java.io.EOFException;
import java.io.FileInputStream;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Random;
-import socket.io.WrappedInputStream;
-import socket.io.WrappedOutputStream;
-
import org.apache.xerces.parsers.SAXParser;
-
import org.xml.sax.AttributeList;
-import org.xml.sax.DocumentHandler;
import org.xml.sax.HandlerBase;
import org.xml.sax.InputSource;
-import org.xml.sax.Parser;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
+import socket.io.WrappedInputStream;
+import socket.io.WrappedOutputStream;
+
/**
* This sample provides a solution to the problem of 1) sending multiple
* XML documents over a single socket connection or 2) sending other types
Modified: xerces/java/trunk/samples/socket/io/WrappedInputStream.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/socket/io/WrappedInputStream.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/socket/io/WrappedInputStream.java (original)
+++ xerces/java/trunk/samples/socket/io/WrappedInputStream.java Sun Sep 28 14:21:24 2008
@@ -19,8 +19,8 @@
import java.io.DataInputStream;
import java.io.FilterInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
/**
* This input stream works in conjunction with the WrappedOutputStream
Modified: xerces/java/trunk/samples/xni/Counter.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/Counter.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/Counter.java (original)
+++ xerces/java/trunk/samples/xni/Counter.java Sun Sep 28 14:21:24 2008
@@ -21,12 +21,12 @@
import org.apache.xerces.parsers.XMLDocumentParser;
import org.apache.xerces.xni.Augmentations;
+import org.apache.xerces.xni.NamespaceContext;
import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;
import org.apache.xerces.xni.XMLLocator;
import org.apache.xerces.xni.XMLString;
import org.apache.xerces.xni.XNIException;
-import org.apache.xerces.xni.NamespaceContext;
import org.apache.xerces.xni.parser.XMLConfigurationException;
import org.apache.xerces.xni.parser.XMLErrorHandler;
import org.apache.xerces.xni.parser.XMLInputSource;
Modified: xerces/java/trunk/samples/xni/ObjectFactory.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/ObjectFactory.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/ObjectFactory.java (original)
+++ xerces/java/trunk/samples/xni/ObjectFactory.java Sun Sep 28 14:21:24 2008
@@ -17,14 +17,13 @@
package xni;
-import java.io.InputStream;
-import java.io.IOException;
+import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
-
-import java.util.Properties;
-import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
import java.io.InputStreamReader;
+import java.util.Properties;
/**
* This class is duplicated for each JAXP subpackage so keep it in sync.
Modified: xerces/java/trunk/samples/xni/PassThroughFilter.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/PassThroughFilter.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/PassThroughFilter.java (original)
+++ xerces/java/trunk/samples/xni/PassThroughFilter.java Sun Sep 28 14:21:24 2008
@@ -18,8 +18,8 @@
package xni;
import org.apache.xerces.xni.Augmentations;
-import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.NamespaceContext;
+import org.apache.xerces.xni.QName;
import org.apache.xerces.xni.XMLAttributes;
import org.apache.xerces.xni.XMLDocumentHandler;
import org.apache.xerces.xni.XMLLocator;
Modified: xerces/java/trunk/samples/xni/SecuritySupport.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/SecuritySupport.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/SecuritySupport.java (original)
+++ xerces/java/trunk/samples/xni/SecuritySupport.java Sun Sep 28 14:21:24 2008
@@ -21,7 +21,6 @@
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
-
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.PrivilegedActionException;
Modified: xerces/java/trunk/samples/xni/parser/AbstractConfiguration.java
URL: http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/parser/AbstractConfiguration.java?rev=699895&r1=699894&r2=699895&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/parser/AbstractConfiguration.java (original)
+++ xerces/java/trunk/samples/xni/parser/AbstractConfiguration.java Sun Sep 28 14:21:24 2008
@@ -18,19 +18,18 @@
package xni.parser;
import java.io.FileInputStream;
-import java.io.InputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Hashtable;
import java.util.Locale;
import java.util.Vector;
-import org.apache.xerces.xni.XMLDocumentHandler;
-import org.apache.xerces.xni.XMLDTDHandler;
import org.apache.xerces.xni.XMLDTDContentModelHandler;
+import org.apache.xerces.xni.XMLDTDHandler;
+import org.apache.xerces.xni.XMLDocumentHandler;
import org.apache.xerces.xni.XNIException;
-
import org.apache.xerces.xni.parser.XMLComponent;
import org.apache.xerces.xni.parser.XMLConfigurationException;
import org.apache.xerces.xni.parser.XMLEntityResolver;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org