|
From: <doc...@us...> - 2007-12-07 22:12:07
|
Revision: 212
http://openpcl.svn.sourceforge.net/openpcl/?rev=212&view=rev
Author: documentsystems
Date: 2007-12-07 14:12:12 -0800 (Fri, 07 Dec 2007)
Log Message:
-----------
Howard Hoagland. Deleted the "synchronized" off of the parseAndRender() method so that when several threads are executing at the same time on a server in the same JVM, but each one did a "new" to get their own PclRenderImage, more than one thread can be executing the parseAndRender() method at the same time instead of only one thread can execute in the method at a time.
Modified Paths:
--------------
openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java
Modified: openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java
===================================================================
--- openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-12-05 21:15:26 UTC (rev 211)
+++ openpcl/src/com/openpcl/pclrenderimage/PclRenderImage.java 2007-12-07 22:12:12 UTC (rev 212)
@@ -28,7 +28,7 @@
//import com.openpcl.pclrenderimage.util.PriDebug;
/**
- * PclRenderImage may be used with or without the openpcl.jar file. If you imbed the OpenPCLViewer JPanel
+ * PclRenderImage may be used with or without the openpcl.jar file. If you embed the OpenPCLViewer JPanel
* in your app, then you need the openpcljar file. But if your app has all the UI code you need, and all you
* want is to pass in PCL bytes to render and put the BufferedImage bitmap on your screen, then you don't need
* the openpcl.jar file at all.
@@ -47,9 +47,9 @@
*
* The implemented interface IPclRenderImage are call into methods that can return Object values.
* The implemented interface PclCommandEvent is in RmsTools.
- * There are no callback methods that the class that instantiated this class must impelement.
+ * There are no callback methods that the class that instantiated this class must implement.
*
- * @author DocMagic, Document Systems Inc, Howard. Rendering code written May 16 2006 to July 20 2006.
+ * @author DocMagic, Document Systems Inc, Howard Hoagland. Rendering code written May 16 2006 to July 20 2006.
*/
public class PclRenderImage implements IPclRenderImage, PclCommandEvent {
protected PclParser mPclParser = null; // PclParser in RmsTools
@@ -726,7 +726,7 @@
* @param pAtZoomFactor
* @return If error returns error String. If no error then returns null
*/
- protected synchronized BufferedImage parseAndRender(byte[] pPclBytes, boolean pIsForPrinting, double pAtZoomFactor) {
+ protected BufferedImage parseAndRender(byte[] pPclBytes, boolean pIsForPrinting, double pAtZoomFactor) {
// Error check for no PCL bytes to parse to build the tree pages nodes from
if (pPclBytes == null || pPclBytes.length < 1) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|