From 08aa8c2f123b2a0fd5afe1a74de2a5e1254b1373 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Fri, 5 May 2017 09:04:03 +0200 Subject: [PATCH] Normalized. --- .../devinsy/util/cmdexec/StreamGobbler.java | 2 +- .../util/cmdexec/demo/CmdExecDemo.java | 56 +++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 src/fr/devinsy/util/cmdexec/demo/CmdExecDemo.java diff --git a/src/fr/devinsy/util/cmdexec/StreamGobbler.java b/src/fr/devinsy/util/cmdexec/StreamGobbler.java index f12972a..6eed29c 100644 --- a/src/fr/devinsy/util/cmdexec/StreamGobbler.java +++ b/src/fr/devinsy/util/cmdexec/StreamGobbler.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2008, 2010, 2013, 2016-2017 Christian Pierre MOMON + * Copyright (C) 2005-2008,2010,2013,2016-2017 Christian Pierre MOMON * * This file is part of Devinsy-cmdexec. * diff --git a/src/fr/devinsy/util/cmdexec/demo/CmdExecDemo.java b/src/fr/devinsy/util/cmdexec/demo/CmdExecDemo.java new file mode 100644 index 0000000..1415820 --- /dev/null +++ b/src/fr/devinsy/util/cmdexec/demo/CmdExecDemo.java @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2017 Christian Pierre MOMON + * + * This file is part of Devinsy-cmdexec. + * + * Devinsy-cmdexec 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 3 of the License, or + * (at your option) any later version. + * + * Devinsy-cmdexec 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 Devinsy-cmdexec. If not, see + */ +package fr.devinsy.util.cmdexec.demo; + +import fr.devinsy.util.strings.StringList; + +/** + * The Class Demo. + */ +public class CmdExecDemo +{ + /** + * The main method. + * + * @param args + * the arguments + */ + public static void main(final String[] args) + { + // #1 + { + StringList strings = new StringList(); + + strings.appendln("========== DEMO #1;"); + strings.appendln(); + + System.out.println(strings.toString()); + } + + // #2 + { + StringList strings = new StringList(); + + strings.appendln("========== DEMO #2;"); + strings.appendln(); + + System.out.println(strings.toString()); + } + } +}