[Japi-cvs] SF.net SVN: japi:[859] libs/argparser/trunk/src/prj/net/sf/japi/io/args/ converter
Status: Beta
Brought to you by:
christianhujer
|
From: <chr...@us...> - 2009-02-15 02:15:36
|
Revision: 859
http://japi.svn.sourceforge.net/japi/?rev=859&view=rev
Author: christianhujer
Date: 2009-02-15 02:14:43 +0000 (Sun, 15 Feb 2009)
Log Message:
-----------
Fixed typo in class name.
Added Paths:
-----------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OutputStreamConverter.java
Removed Paths:
-------------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OututStreamConverter.java
Copied: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OutputStreamConverter.java (from rev 854, libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OututStreamConverter.java)
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OutputStreamConverter.java (rev 0)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OutputStreamConverter.java 2009-02-15 02:14:43 UTC (rev 859)
@@ -0,0 +1,49 @@
+/*
+ * Copyright (C) 2009 Christian Hujer.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package net.sf.japi.io.args.converter;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.OutputStream;
+import java.util.Locale;
+import org.jetbrains.annotations.NotNull;
+
+/**
+ * Converter that converts a String into an InputStream.
+ * @note This converter always behaves the same independently of the {@link Locale}.
+ * @author <a href="mailto:ch...@ri...">Christian Hujer</a>
+ * @deprecated The concept of this class is not yet mature. Please don't use it.
+ */
+@Deprecated public class OutputStreamConverter extends AbstractConverter<OutputStream> {
+
+ /**
+ * Create an InputStreamConverter.
+ */
+ public OutputStreamConverter() {
+ super(OutputStream.class);
+ }
+
+ /** {@inheritDoc} */
+ @SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})
+ @NotNull public OutputStream convert(@NotNull final Locale locale, @NotNull final String arg) throws FileNotFoundException {
+ return "-".equals(arg) && !new File("-").exists() ? System.out : new FileOutputStream(arg);
+ }
+
+} // class InputStreamConverter
Property changes on: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OutputStreamConverter.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:eol-style
+ LF
Deleted: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OututStreamConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OututStreamConverter.java 2009-02-15 02:14:08 UTC (rev 858)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/OututStreamConverter.java 2009-02-15 02:14:43 UTC (rev 859)
@@ -1,49 +0,0 @@
-/*
- * Copyright (C) 2009 Christian Hujer.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
-
-package net.sf.japi.io.args.converter;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
-import java.io.OutputStream;
-import java.util.Locale;
-import org.jetbrains.annotations.NotNull;
-
-/**
- * Converter that converts a String into an InputStream.
- * @note This converter always behaves the same independently of the {@link Locale}.
- * @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @deprecated The concept of this class is not yet mature. Please don't use it.
- */
-@Deprecated public class OututStreamConverter extends AbstractConverter<OutputStream> {
-
- /**
- * Create an InputStreamConverter.
- */
- public OututStreamConverter() {
- super(OutputStream.class);
- }
-
- /** {@inheritDoc} */
- @SuppressWarnings({"IOResourceOpenedButNotSafelyClosed"})
- @NotNull public OutputStream convert(@NotNull final Locale locale, @NotNull final String arg) throws FileNotFoundException {
- return "-".equals(arg) && !new File("-").exists() ? System.out : new FileOutputStream(arg);
- }
-
-} // class InputStreamConverter
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|