You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/java/org/apache/commons/codec/cli/Digest.java
+35-31Lines changed: 35 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,10 @@
14
14
* See the License for the specific language governing permissions and
15
15
* limitations under the License.
16
16
*/
17
+
17
18
packageorg.apache.commons.codec.cli;
18
19
20
+
importjava.io.BufferedInputStream;
19
21
importjava.io.File;
20
22
importjava.io.IOException;
21
23
importjava.nio.charset.Charset;
@@ -36,18 +38,17 @@
36
38
*/
37
39
publicclassDigest {
38
40
41
+
privatestaticfinalStringEMPTY = "";
42
+
39
43
/**
40
-
* Runs the digest algorithm in {@code args[0]} on the file in {@code args[1]}. If there is no {@code args[1]}, use
41
-
* standard input.
44
+
* Runs the digest algorithm in {@code args[0]} on the file in {@code args[1]}. If there is no {@code args[1]}, use standard input.
42
45
*
43
46
* <p>
44
47
* The algorithm can also be {@code ALL} or {@code *} to output one line for each known algorithm.
45
48
* </p>
46
49
*
47
-
* @param args
48
-
* {@code args[0]} is one of {@link MessageDigestAlgorithms} name,
49
-
* {@link MessageDigest} name, {@code ALL}, or {@code *}.
50
-
* {@code args[1+]} is a FILE/DIRECTORY/String.
50
+
* @param args {@code args[0]} is one of {@link MessageDigestAlgorithms} name, {@link MessageDigest} name, {@code ALL}, or {@code *}. {@code args[1+]} is a
0 commit comments