added license and javadoc
Project: http://git-wip-us.apache.org/repos/asf/any23/repo Commit: http://git-wip-us.apache.org/repos/asf/any23/commit/0291f588 Tree: http://git-wip-us.apache.org/repos/asf/any23/tree/0291f588 Diff: http://git-wip-us.apache.org/repos/asf/any23/diff/0291f588 Branch: refs/heads/master Commit: 0291f588d04859053ef4eb8845686bad824b4461 Parents: 159aeb4 Author: Hans <[email protected]> Authored: Thu Aug 2 13:01:19 2018 -0500 Committer: Hans <[email protected]> Committed: Thu Aug 2 13:01:19 2018 -0500 ---------------------------------------------------------------------- .../java/org/apache/any23/cli/BaseTool.java | 24 ++++++++++++++++++++ 1 file changed, 24 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/any23/blob/0291f588/cli/src/main/java/org/apache/any23/cli/BaseTool.java ---------------------------------------------------------------------- diff --git a/cli/src/main/java/org/apache/any23/cli/BaseTool.java b/cli/src/main/java/org/apache/any23/cli/BaseTool.java index d9a82f5..6164158 100644 --- a/cli/src/main/java/org/apache/any23/cli/BaseTool.java +++ b/cli/src/main/java/org/apache/any23/cli/BaseTool.java @@ -1,9 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.apache.any23.cli; import java.io.IOException; import java.io.OutputStream; import java.io.PrintStream; +/** + * This class reduces the verbosity of testing command-line + * console output by intercepting the underlying {@link PrintStream} + * when applicable and replacing it with a more concise version. + * + * @author Hans Brende ([email protected]) + */ abstract class BaseTool implements Tool { abstract PrintStream getOut();
