You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/12/27 15:48:56 UTC
svn commit: r123413 - /lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java
Author: gregor
Date: Mon Dec 27 06:48:54 2004
New Revision: 123413
URL: http://svn.apache.org/viewcvs?view=rev&rev=123413
Log:
Refactored RevisionController to no longer rely on the deprecated XPSOutputStream
Modified:
lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java
Modified: lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java
Url: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java?view=diff&rev=123413&p1=lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java&r1=123412&p2=lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java&r2=123413
==============================================================================
--- lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java (original)
+++ lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java Mon Dec 27 06:48:54 2004
@@ -21,13 +21,13 @@
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Date;
-import org.apache.lenya.util.XPSFileOutputStream;
import org.apache.log4j.Category;
/**
@@ -239,7 +239,7 @@
InputStream in = new FileInputStream(originalFile.getAbsolutePath());
- OutputStream out = new XPSFileOutputStream(backupFile.getAbsolutePath());
+ OutputStream out = new FileOutputStream(backupFile.getAbsolutePath());
byte[] buffer = new byte[512];
int length;
@@ -332,7 +332,7 @@
//
FileInputStream in = new FileInputStream(backup.getAbsolutePath());
- XPSFileOutputStream out = new XPSFileOutputStream(current.getAbsolutePath());
+ FileOutputStream out = new FileOutputStream(current.getAbsolutePath());
byte[] buffer = new byte[512];
int length;
@@ -376,7 +376,7 @@
FileInputStream in = new FileInputStream(backup.getAbsolutePath());
- XPSFileOutputStream out = new XPSFileOutputStream(current.getAbsolutePath());
+ FileOutputStream out = new FileOutputStream(current.getAbsolutePath());
byte[] buffer = new byte[512];
int length;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org