Thread: [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.
|
|
From: <chr...@us...> - 2009-03-02 01:57:02
|
Revision: 1268
http://japi.svn.sourceforge.net/japi/?rev=1268&view=rev
Author: christianhujer
Date: 2009-03-02 01:39:53 +0000 (Mon, 02 Mar 2009)
Log Message:
-----------
Corrected @since information for new converters.
Modified Paths:
--------------
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ByteConverter.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/CharConverter.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/DoubleConverter.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/FloatConverter.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/LongConverter.java
libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ShortConverter.java
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ByteConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ByteConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ByteConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see Byte#decode(String) Minimum grammar supported.
*/
public class ByteConverter extends AbstractConverter<Byte> {
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/CharConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/CharConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/CharConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see String#charAt(int) Minimum grammar supported.
*/
public class CharConverter extends AbstractConverter<Character> {
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/DoubleConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/DoubleConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/DoubleConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see Double#valueOf(String) Minimum grammar supported.
*/
public class DoubleConverter extends AbstractConverter<Double> {
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/FloatConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/FloatConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/FloatConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see Float#valueOf(String) Minimum grammar supported.
*/
public class FloatConverter extends AbstractConverter<Float> {
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/LongConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/LongConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/LongConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see Long#decode(String) Minimum grammar supported.
*/
public class LongConverter extends AbstractConverter<Long> {
Modified: libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ShortConverter.java
===================================================================
--- libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ShortConverter.java 2009-03-02 01:39:29 UTC (rev 1267)
+++ libs/argparser/trunk/src/prj/net/sf/japi/io/args/converter/ShortConverter.java 2009-03-02 01:39:53 UTC (rev 1268)
@@ -27,7 +27,7 @@
* That means the following formats are supported:
* @note This converter always behaves the same independently of the {@link Locale}.
* @author <a href="mailto:ch...@ri...">Christian Hujer</a>
- * @since 0.2
+ * @since 0.3
* @see Short#decode(String) Minimum grammar supported.
*/
public class ShortConverter extends AbstractConverter<Short> {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|