incubator-sanselan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmc...@apache.org
Subject svn commit: r609529 [2/2] - in /incubator/sanselan/trunk/src: main/java/org/apache/sanselan/common/ main/java/org/apache/sanselan/formats/jpeg/ main/java/org/apache/sanselan/formats/jpeg/exifRewrite/ main/java/org/apache/sanselan/formats/tiff/constants...
Date Mon, 07 Jan 2008 08:12:05 GMT
Modified: incubator/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/ExifRewriteTest.java
URL: http://svn.apache.org/viewvc/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/ExifRewriteTest.java?rev=609529&r1=609528&r2=609529&view=diff
==============================================================================
--- incubator/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/ExifRewriteTest.java
(original)
+++ incubator/sanselan/trunk/src/test/java/org/apache/sanselan/formats/jpeg/ExifRewriteTest.java
Mon Jan  7 00:12:01 2008
@@ -122,7 +122,7 @@
 			byte bytes[] = baos.toByteArray();
 			File tempFile = File.createTempFile(name + "_", ".jpg");
 			Debug.debug("tempFile", tempFile);
-			//			tempFile.deleteOnExit();
+			tempFile.deleteOnExit();
 			IOUtils.writeToFile(bytes, tempFile);
 
 			Debug.debug("Output Segments:");
@@ -158,39 +158,22 @@
 		rewrite(rewriter, "lossy");
 	}
 
-	//	public void testRewriteLossy2() throws IOException, ImageReadException,
-	//			ImageWriteException
-	//	{
-	//		Rewriter rewriter = new Rewriter()
-	//		{
-	//			public void rewrite(ByteSource byteSource, OutputStream os,
-	//					TiffOutputSet outputSet) throws ImageReadException,
-	//					IOException, ImageWriteException
-	//			{
-	//				new ExifRewriter().updateExifMetadataLossy2(byteSource, os,
-	//						outputSet);
-	//			}
-	//		};
-	//
-	//		rewrite(rewriter, "lossy2");
-	//	}
-
-	//	public void testRewriteLossless() throws IOException, ImageReadException,
-	//			ImageWriteException
-	//	{
-	//		Rewriter rewriter = new Rewriter()
-	//		{
-	//			public void rewrite(ByteSource byteSource, OutputStream os,
-	//					TiffOutputSet outputSet) throws ImageReadException,
-	//					IOException, ImageWriteException
-	//			{
-	//				new ExifRewriter().updateExifMetadataLossless(byteSource, os,
-	//						outputSet);
-	//			}
-	//		};
-	//
-	//		rewrite(rewriter, "lossless");
-	//	}
+//	public void testRewriteLossless() throws IOException, ImageReadException,
+//			ImageWriteException
+//	{
+//		Rewriter rewriter = new Rewriter()
+//		{
+//			public void rewrite(ByteSource byteSource, OutputStream os,
+//					TiffOutputSet outputSet) throws ImageReadException,
+//					IOException, ImageWriteException
+//			{
+//				new ExifRewriter().updateExifMetadataLossless(byteSource, os,
+//						outputSet);
+//			}
+//		};
+//
+//		rewrite(rewriter, "lossless");
+//	}
 
 	private Hashtable makeDirectoryMap(ArrayList directories)
 	{
@@ -241,7 +224,7 @@
 		{
 			Integer dirType = (Integer) oldDirectoryTypes.get(i);
 
-//			Debug.debug("dirType", dirType);
+			//			Debug.debug("dirType", dirType);
 
 			TiffImageMetadata.Directory oldDirectory = (TiffImageMetadata.Directory) oldDirectoryMap
 					.get(dirType);
@@ -253,10 +236,10 @@
 			ArrayList oldItems = oldDirectory.getItems();
 			ArrayList newItems = newDirectory.getItems();
 
-//			Debug.debug("oldItems.size()", oldItems.size());
-//			Debug.debug("newItems.size()", newItems.size());
-//			dump("oldItems", oldItems);
-//			dump("newItems", newItems);
+			//			Debug.debug("oldItems.size()", oldItems.size());
+			//			Debug.debug("newItems.size()", newItems.size());
+			//			dump("oldItems", oldItems);
+			//			dump("newItems", newItems);
 
 			assertTrue(oldItems.size() == newItems.size());
 
@@ -283,9 +266,9 @@
 				TiffField oldField = (TiffField) oldFieldMap.get(fieldTag);
 				TiffField newField = (TiffField) newFieldMap.get(fieldTag);
 
-//				Debug.debug("fieldTag", fieldTag);
-//				Debug.debug("oldField", oldField);
-//				Debug.debug("fieldTag", fieldTag);
+				//				Debug.debug("fieldTag", fieldTag);
+				//				Debug.debug("oldField", oldField);
+				//				Debug.debug("fieldTag", fieldTag);
 
 				//				fieldTag.
 				assertNotNull(oldField);



Mime
View raw message