[pkg-java] r12325 - in trunk/stylebook: . debian debian/patches debian/source
Torsten Werner
twerner at alioth.debian.org
Thu May 6 20:39:23 UTC 2010
Author: twerner
Date: 2010-05-06 20:39:23 +0000 (Thu, 06 May 2010)
New Revision: 12325
Added:
trunk/stylebook/debian/patches/
trunk/stylebook/debian/patches/imageio.diff
trunk/stylebook/debian/patches/series
trunk/stylebook/debian/source/
trunk/stylebook/debian/source/format
Removed:
trunk/stylebook/src/
Modified:
trunk/stylebook/debian/changelog
Log:
Switch to source format 3.0.
Modified: trunk/stylebook/debian/changelog
===================================================================
--- trunk/stylebook/debian/changelog 2010-05-06 20:22:36 UTC (rev 12324)
+++ trunk/stylebook/debian/changelog 2010-05-06 20:39:23 UTC (rev 12325)
@@ -1,9 +1,13 @@
-stylebook (1.0~b3~svn20061109-3) UNRELEASED; urgency=low
+stylebook (1.0~b3~svn20061109-3) unstable; urgency=low
+ [ Matthias Klose ]
* (Build-)depend on default-jre/-jdk.
- -- Matthias Klose <doko at debian.org> Wed, 30 Jul 2008 18:51:31 +0000
+ [ Torsten Werner ]
+ * Switch to source format 3.0.
+ -- Torsten Werner <twerner at debian.org> Thu, 06 May 2010 22:23:31 +0200
+
stylebook (1.0~b3~svn20061109-2) unstable; urgency=low
* Move to unstable.
Added: trunk/stylebook/debian/patches/imageio.diff
===================================================================
--- trunk/stylebook/debian/patches/imageio.diff (rev 0)
+++ trunk/stylebook/debian/patches/imageio.diff 2010-05-06 20:39:23 UTC (rev 12325)
@@ -0,0 +1,27 @@
+--- stylebook-1.0~b3~svn20061109.orig/src/org/apache/stylebook/printers/ImagePrinter.java
++++ stylebook-1.0~b3~svn20061109/src/org/apache/stylebook/printers/ImagePrinter.java
+@@ -10,6 +10,7 @@ package org.apache.stylebook.printers;
+ import org.apache.stylebook.*;
+ import javax.imageio.*;
+ import javax.imageio.plugins.jpeg.*;
++import javax.imageio.stream.*;
+ import java.io.IOException;
+ import java.io.OutputStream;
+ import java.io.PrintStream;
+@@ -145,13 +146,13 @@ public class ImagePrinter extends Abstra
+ }
+ }
+
+- // Write out image (highest quality for jpeg data)
++ // Write out image
+ ImageWriter encoder =
+ (ImageWriter)ImageIO.getImageWritersByFormatName("jpeg").next();
+- JPEGImageWriteParam param = new JPEGImageWriteParam(null);
++ ImageWriteParam param = encoder.getDefaultWriteParam();
+ param.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
+ param.setCompressionQuality(1);
+- encoder.setOutput(out);
++ encoder.setOutput(new MemoryCacheImageOutputStream(out));
+ encoder.write(null, new IIOImage(img, null, null), param);
+ out.flush();
+ }
Added: trunk/stylebook/debian/patches/series
===================================================================
--- trunk/stylebook/debian/patches/series (rev 0)
+++ trunk/stylebook/debian/patches/series 2010-05-06 20:39:23 UTC (rev 12325)
@@ -0,0 +1 @@
+imageio.diff
Added: trunk/stylebook/debian/source/format
===================================================================
--- trunk/stylebook/debian/source/format (rev 0)
+++ trunk/stylebook/debian/source/format 2010-05-06 20:39:23 UTC (rev 12325)
@@ -0,0 +1 @@
+3.0 (quilt)
More information about the pkg-java-commits
mailing list