diff options
Diffstat (limited to 'java/security/DigestInputStream.java')
-rw-r--r-- | java/security/DigestInputStream.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/java/security/DigestInputStream.java b/java/security/DigestInputStream.java index c0a74f3ab..7bd440e26 100644 --- a/java/security/DigestInputStream.java +++ b/java/security/DigestInputStream.java @@ -1,5 +1,5 @@ /* DigestInputStream.java --- An Input stream tied to a message digest - Copyright (C) 1999, 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 1999, 2003, 2004, 2005, 2015 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -110,6 +110,7 @@ public class DigestInputStream extends FilterInputStream * @throws IOException if an IO error occurs in the underlying input stream, * this error is thrown */ + @Override public int read() throws IOException { int temp = in.read(); @@ -134,6 +135,7 @@ public class DigestInputStream extends FilterInputStream * @throws IOException if an IO error occurs in the underlying input stream, * this error is thrown */ + @Override public int read(byte[]b, int off, int len) throws IOException { int temp = in.read(b, off, len); @@ -160,6 +162,7 @@ public class DigestInputStream extends FilterInputStream * * @return A string representing the input stream and message digest. */ + @Override public String toString() { return "[Digest Input Stream] " + digest.toString(); |