[microlog4android~source-code-repository:361bf4ba] Removed the IOUtils class.
- From: johanlkarlsson@kenai.com
- To: commits@microlog4android.kenai.com
- Subject: [microlog4android~source-code-repository:361bf4ba] Removed the IOUtils class.
- Date: Mon, 7 Dec 2009 05:48:47 +0000
Project: microlog4android
Repository: source-code-repository
Revision: 361bf4bac12854a0f3ca93d411ff0598dcbd954f
Author: johanlkarlsson
Date: 2009-12-06 19:00:08 UTC
Link:
Log Message:
------------
Removed the IOUtils class.
Revisions:
----------
361bf4bac12854a0f3ca93d411ff0598dcbd954f
Diffs:
------
diff --git a/src/main/java/net/sf/microlog/core/IOUtil.java
b/src/main/java/net/sf/microlog/core/IOUtil.java
deleted file mode 100644
index f56a8e2..0000000
--- a/src/main/java/net/sf/microlog/core/IOUtil.java
+++ /dev/null
@@ -1,64 +0,0 @@
-package net.sf.microlog.core;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.microedition.io.Connection;
-
-/**
- * Some I/O utilities to be used in a Java ME CLDC environment.
- *
- * @author Johan Karlsson
- *
- */
-public class IOUtil {
-
- /**
- * Close the <code>InputStream</code> silent.
- *
- * @param inputStream
- * the <code>InputStream</code> to close.
- */
- public static void closeSilent(InputStream inputStream) {
- if (inputStream != null) {
- try {
- inputStream.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * Close the <code>OutputStream</code> silent.
- *
- * @param inputStream
- * the <code>OutputStream</code> to close.
- */
- public static void closeSilent(OutputStream outputStream) {
- if (outputStream != null) {
- try {
- outputStream.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
-
- /**
- * Close the <code>Connection</code> silent.
- *
- * @param connection
- * the <code>Connection</code> to close.
- */
- public static void closeSilent(Connection connection) {
- if (connection != null) {
- try {
- connection.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
-}
|
[microlog4android~source-code-repository:361bf4ba] Removed the IOUtils class. |
johanlkarlsson | 12/07/2009 |





