diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2007-12-05 17:34:44 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2007-12-05 17:34:44 +0000 |
commit | 9183b18892f4f94ec3308a1092d9a860676fa8a1 (patch) | |
tree | adcf22aabb63161ae56baf417ce728bbff486ef6 /src/java/org | |
parent | 20b892a8f3a405302d299d068921dff6bdfd5027 (diff) | |
download | xmlgraphics-fop-9183b18892f4f94ec3308a1092d9a860676fa8a1.tar.gz xmlgraphics-fop-9183b18892f4f94ec3308a1092d9a860676fa8a1.zip |
Checkstyle fixes
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@601436 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/fop/render/afp/modca/ImageRasterData.java | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/java/org/apache/fop/render/afp/modca/ImageRasterData.java b/src/java/org/apache/fop/render/afp/modca/ImageRasterData.java index 014231e51..ca440a859 100644 --- a/src/java/org/apache/fop/render/afp/modca/ImageRasterData.java +++ b/src/java/org/apache/fop/render/afp/modca/ImageRasterData.java @@ -48,32 +48,29 @@ public class ImageRasterData extends AbstractAFPObject { /** * The image raster data */ - private byte[] _rasterdata; + private byte[] rasterData; /** * Constructor for the image raster data object - * @param rasterdata The raster image data + * @param data The raster image data */ - public ImageRasterData(byte[] rasterdata) { - - _rasterdata = rasterdata; - + public ImageRasterData(byte[] data) { + this.rasterData = data; } /** * Accessor method to write the AFP datastream for the Image Raster Data * @param os The stream to write to - * @throws java.io.IOException + * @throws java.io.IOException if an I/O exception occurred */ - public void writeDataStream(OutputStream os) - throws IOException { + public void writeDataStream(OutputStream os) throws IOException { byte[] data = new byte[9]; data[0] = 0x5A; // The size of the structured field - byte[] x = BinaryUtils.convert(_rasterdata.length + 8, 2); + byte[] x = BinaryUtils.convert(rasterData.length + 8, 2); data[1] = x[0]; data[2] = x[1]; @@ -85,8 +82,6 @@ public class ImageRasterData extends AbstractAFPObject { data[8] = 0x00; os.write(data); - os.write(_rasterdata); - + os.write(rasterData); } - }
\ No newline at end of file |