]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Checkstyle fixes
authorAdrian Cumiskey <acumiskey@apache.org>
Wed, 5 Dec 2007 17:28:03 +0000 (17:28 +0000)
committerAdrian Cumiskey <acumiskey@apache.org>
Wed, 5 Dec 2007 17:28:03 +0000 (17:28 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@601430 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/afp/tools/StructuredFieldReader.java

index 4871c9528fabffbbeaea9e564535ec330364f3d7..433e600f952687c483a89b1d98026a4fb6e063cd 100644 (file)
@@ -43,23 +43,22 @@ public class StructuredFieldReader {
     /**
      * 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 @@ public class StructuredFieldReader {
         }
 
         int c;
-        while ((c = _inputStream.read()) > -1) {
+        while ((c = inputStream.read()) > -1) {
 
             bufferData[bufferPointer] = (byte) c;
 
@@ -116,7 +115,7 @@ public class StructuredFieldReader {
 
                 byte[] retval = new byte[reclength];
 
-                _inputStream.read(retval, 0, reclength);
+                inputStream.read(retval, 0, reclength);
 
                 return retval;
 
@@ -131,7 +130,5 @@ public class StructuredFieldReader {
 
         return new byte[] {
         };
-
     }
-
 }