diff org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/log/FrameworkLog.d @ 105:bbe49769ec18

...
author Frank Benoit <benoit@tionex.de>
date Sun, 08 Nov 2009 12:42:30 +0100
parents 0628aaa2996c
children
line wrap: on
line diff
--- a/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/log/FrameworkLog.d	Sat May 02 11:27:24 2009 +0200
+++ b/org.eclipse.osgi/supplement/src/org/eclipse/osgi/framework/log/FrameworkLog.d	Sun Nov 08 12:42:30 2009 +0100
@@ -4,16 +4,20 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- * 
+ *
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
+// Port to the D programming language:
+//     Frank Benoit <benoit@tionex.de>
 module org.eclipse.osgi.framework.log.FrameworkLog;
-import org.eclipse.osgi.framework.log.FrameworkLogEntry;
 
 import java.lang.all;
+
+import org.eclipse.osgi.framework.log.FrameworkLogEntry; // packageimport
+
 import java.io.File;
-//import java.io.IOException;
+import java.io.IOException;
 import java.io.Writer;
 
 import org.osgi.framework.FrameworkEvent;
@@ -21,18 +25,18 @@
 /**
  * The FramworkLog interface.  A FrameworkLog implementation is provided by the
  * FrameworkAdaptor and used by the Framework to log any error messages and
- * FrameworkEvents of type ERROR.  The FrameworkLog may persist the log messages 
+ * FrameworkEvents of type ERROR.  The FrameworkLog may persist the log messages
  * to the filesystem or allow other ways of accessing the log information.
  * @since 3.1
  * @noimplement This interface is not intended to be implemented by clients.
  */
 public interface FrameworkLog {
     /**
-     * A service lookup constant (value "performance") indicating an 
-     * implementation of the logging service that logs performance events. 
-     * Create a filter with this property set to <code>"true"</code> in order to 
+     * A service lookup constant (value "performance") indicating an
+     * implementation of the logging service that logs performance events.
+     * Create a filter with this property set to <code>"true"</code> in order to
      * obtain a performance log.
-     * 
+     *
      * @since 3.1
      */
     public static final String SERVICE_PERFORMANCE = "performance"; //$NON-NLS-1$
@@ -52,28 +56,28 @@
     /**
      * Sets the current Writer used to log messages to the specified
      * newWriter.  If append is set to true then the content
-     * of the current Writer will be appended to the new Writer 
+     * of the current Writer will be appended to the new Writer
      * if possible.
-     * @param newWriter The Writer to use for logging messages. 
+     * @param newWriter The Writer to use for logging messages.
      * @param append Indicates whether the content of the current Writer
-     * used for logging messages should be appended to the end of the new 
+     * used for logging messages should be appended to the end of the new
      * Writer.
      */
     public void setWriter(Writer newWriter, bool append);
 
-    /** 
+    /**
      * Sets the current File used to log messages to a FileWriter
-     * using the specified File.  If append is set to true then the 
-     * content of the current Writer will be appended to the 
+     * using the specified File.  If append is set to true then the
+     * content of the current Writer will be appended to the
      * new File if possible.
      * @param newFile The File to create a new FileWriter which will be
      * used for logging messages.
      * @param append Indicates whether the content of the current Writer
-     * used for logging messages should be appended to the end of the new 
+     * used for logging messages should be appended to the end of the new
      * File.
      * @throws IOException if any problem occurs while constructing a
-     * FileWriter from the newFile.  If this exception is thrown the 
-     * FrameworkLog will not be effected and will continue to use the 
+     * FileWriter from the newFile.  If this exception is thrown the
+     * FrameworkLog will not be effected and will continue to use the
      * current Writer to log messages.
      */
     public void setFile(File newFile, bool append) ;