]> source.dussan.org Git - aspectj.git/commitdiff
change all relevant DataOutputStream usage to use CompressingDataOutputStream
authoraclement <aclement>
Tue, 18 May 2010 16:20:09 +0000 (16:20 +0000)
committeraclement <aclement>
Tue, 18 May 2010 16:20:09 +0000 (16:20 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/IncrementalStateManager.java

index ee10e08e00981ae15a5b9435933e1cbbe57037d7..e0b101eab1a40cc1fa4f531f6189825f0d8c0edc 100644 (file)
@@ -13,7 +13,6 @@
 
 package org.aspectj.ajdt.internal.core.builder;
 
-import java.io.DataOutputStream;
 import java.io.File;
 import java.io.FileFilter;
 import java.io.FilenameFilter;
@@ -53,6 +52,7 @@ import org.aspectj.org.eclipse.jdt.internal.core.builder.ReferenceCollection;
 import org.aspectj.org.eclipse.jdt.internal.core.builder.StringSet;
 import org.aspectj.util.FileUtil;
 import org.aspectj.weaver.BCException;
+import org.aspectj.weaver.CompressingDataOutputStream;
 import org.aspectj.weaver.ResolvedType;
 import org.aspectj.weaver.bcel.BcelWeaver;
 import org.aspectj.weaver.bcel.BcelWorld;
@@ -2056,7 +2056,7 @@ public class AjState implements CompilerConfigurationChangeFlags {
                aspectClassFiles.add(aspectFile);
        }
 
-       public void write(DataOutputStream dos) throws IOException {
+       public void write(CompressingDataOutputStream dos) throws IOException {
                // weaver
                weaver.write(dos);
                // world
index 90b78ddf66034a09d5cfbff5c1aa16103b2fccc9..36b2687f907d8bdcfa4ec91b4dc11050f8cd1eb6 100644 (file)
@@ -11,7 +11,6 @@
  * ******************************************************************/
 package org.aspectj.ajdt.internal.core.builder;
 
-import java.io.DataOutputStream;
 import java.io.File;
 import java.io.FileNotFoundException;
 import java.io.FileOutputStream;
@@ -24,6 +23,7 @@ import java.util.Map;
 import java.util.Set;
 
 import org.aspectj.ajdt.internal.compiler.CompilationResultDestinationManager;
+import org.aspectj.weaver.CompressingDataOutputStream;
 
 /**
  * Central point for all things incremental... - keeps track of the state recorded for each different config file - allows limited
@@ -61,7 +61,7 @@ public class IncrementalStateManager {
                        File f = new File("c:/temp/foo.ajstate");
                        try {
                                AjState state = (AjState) entry.getValue();
-                               DataOutputStream dos = new DataOutputStream(new FileOutputStream(f));
+                               CompressingDataOutputStream dos = new CompressingDataOutputStream(new FileOutputStream(f));
                                state.write(dos);
                                dos.close();
                        } catch (FileNotFoundException e) {