You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@turbine.apache.org by sg...@apache.org on 2008/02/01 22:25:29 UTC

svn commit: r617654 - /turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java

Author: sgoeschl
Date: Fri Feb  1 13:25:27 2008
New Revision: 617654

URL: http://svn.apache.org/viewvc?rev=617654&view=rev
Log:
Fixing javadoc issues

Modified:
    turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java

Modified: turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java
URL: http://svn.apache.org/viewvc/turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java?rev=617654&r1=617653&r2=617654&view=diff
==============================================================================
--- turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java (original)
+++ turbine/fulcrum/trunk/yaafi/src/java/org/apache/fulcrum/jce/crypto/SmartDecryptingInputStream.java Fri Feb  1 13:25:27 2008
@@ -115,6 +115,7 @@
      *
      * @param content the data to be examined
      * @return true if this is an encrypted file
+     * @exception IOException unable to read the content
      */
     private boolean isEncrypted( byte[] content )
         throws IOException
@@ -234,7 +235,7 @@
      *
      * @param content the content to examine
      * @return true if it is a XML document
-     * @throws IOException
+     * @throws IOException unable to read the content
      */
     private boolean isUtf16Text( byte[] content ) throws IOException
     {
@@ -243,7 +244,7 @@
             return false;
         }
 
-        if( this.hasByteOrderMark(content) == true )
+        if( this.hasByteOrderMark( content ) )
         {
             // we should have plenty of 0x00 in a text file
 
@@ -264,7 +265,7 @@
      *
      * @param content the content to examine
      * @return true if it is a XML document
-     * @throws IOException
+     * @throws IOException unable to read the content
      */
     private boolean isXML( byte[] content ) throws IOException
     {
@@ -293,7 +294,6 @@
      *
      * @param content the content to examine
      * @return true if it is a PDF document
-     * @throws IOException
      */
 
     private boolean isZip( byte[] content )
@@ -325,7 +325,7 @@
      *
      * @param content the content to examine
      * @return true if it is a PDF document
-     * @throws IOException
+     * @throws IOException unable to read the content
      */
     private boolean isPDF(byte[] content) throws IOException
     {
@@ -355,7 +355,9 @@
     }
 
     /**
-     * Is this an ASCII control character
+     * Is this an ASCII control character?
+     * @param ch the charcter
+     * @return true is this in an ASCII character
      */
     private boolean isAsciiControl(char ch)
     {