You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ac...@apache.org on 2007/12/05 18:28:04 UTC

svn commit: r601430 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java

Author: acumiskey
Date: Wed Dec  5 09:28:03 2007
New Revision: 601430

URL: http://svn.apache.org/viewvc?rev=601430&view=rev
Log:
Checkstyle fixes

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java?rev=601430&r1=601429&r2=601430&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java Wed Dec  5 09:28:03 2007
@@ -43,23 +43,22 @@
     /**
      * The input stream to read
      */
-    private InputStream _inputStream = null;
+    private InputStream inputStream = null;
 
     /**
      * The constructor for the StructuredFieldReader
      * @param inputStream the input stream to process
      */
     public StructuredFieldReader(InputStream inputStream) {
-
-        _inputStream = inputStream;
-
+        this.inputStream = inputStream;
     }
 
     /**
      * Get the next structured field as identified by the identifer
      * parameter (this must be a valid MO:DCA structured field.
      * @param identifier the three byte identifier
-     * @throws IOException
+     * @throws IOException if an I/O exception occurred
+     * @return the next structured field
      */
     public byte[] getNext(byte[] identifier) throws IOException {
 
@@ -70,7 +69,7 @@
         }
 
         int c;
-        while ((c = _inputStream.read()) > -1) {
+        while ((c = inputStream.read()) > -1) {
 
             bufferData[bufferPointer] = (byte) c;
 
@@ -116,7 +115,7 @@
 
                 byte[] retval = new byte[reclength];
 
-                _inputStream.read(retval, 0, reclength);
+                inputStream.read(retval, 0, reclength);
 
                 return retval;
 
@@ -131,7 +130,5 @@
 
         return new byte[] {
         };
-
     }
-
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org