mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
мелкие правки
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@259 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
432ab03935
commit
cb6ff19bc0
2 changed files with 4 additions and 3 deletions
|
@ -2,7 +2,6 @@ package org.fbreader.bookmodel;
|
|||
|
||||
import java.util.Stack;
|
||||
|
||||
import org.fbreader.formats.fb2.Base64EncodedImage;
|
||||
import org.zlibrary.core.image.ZLImage;
|
||||
import org.zlibrary.text.model.ZLTextParagraph;
|
||||
import org.zlibrary.text.model.ZLTextPlainModel;
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package org.fbreader.formats.fb2;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
//import org.apache.commons.codec.binary.Base64;
|
||||
import org.zlibrary.core.image.ZLImage;
|
||||
|
||||
import com.sun.org.apache.xerces.internal.impl.dv.util.Base64;
|
||||
|
||||
public class Base64EncodedImage implements ZLImage {
|
||||
private String myEncodedData;
|
||||
private byte [] myData;
|
||||
|
@ -15,7 +17,7 @@ public class Base64EncodedImage implements ZLImage {
|
|||
if ((myEncodedData == null) || (myData != null)) {
|
||||
return;
|
||||
}
|
||||
myData = Base64.decodeBase64(myEncodedData.getBytes());
|
||||
myData = Base64.decode(myEncodedData);
|
||||
myEncodedData = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue