mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
System.err.println cleanup
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1617 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
06b2ffc2bc
commit
7fe702fa49
4 changed files with 6 additions and 14 deletions
|
@ -179,8 +179,8 @@ public class PluckerBookReader extends BookReader {
|
|||
myCharBuffer = new String(output, 0, size).toCharArray();
|
||||
} catch (DataFormatException e) {
|
||||
// TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
System.out.println(e.getMessage());
|
||||
//e.printStackTrace();
|
||||
//System.out.println(e.getMessage());
|
||||
}
|
||||
//doProcess =
|
||||
//ZLZDecompressor(recordSize - 10 - 4 * paragraphs).
|
||||
|
@ -204,13 +204,13 @@ public class PluckerBookReader extends BookReader {
|
|||
final String mime = "image/palm";
|
||||
ZLImage image = null;
|
||||
if (type == 2) {
|
||||
System.out.println("non-compressed image");
|
||||
//System.out.println("non-compressed image");
|
||||
image = new PluckerFileImage(mime, myFile, myStream.offset(), recordSize - 8);
|
||||
} else if (myCompressionVersion == 1) {
|
||||
System.out.println("DocCompressedImage");
|
||||
//System.out.println("DocCompressedImage");
|
||||
image = new DocCompressedFileImage(mime, myFile, myStream.offset(), recordSize - 8);
|
||||
} else if (myCompressionVersion == 2) {
|
||||
System.out.println("ZCompressedImage");
|
||||
//System.out.println("ZCompressedImage");
|
||||
image = new ZCompressedFileImage(mime, myFile, myStream.offset() + 2, recordSize - 10);
|
||||
}
|
||||
if (image != null) {
|
||||
|
@ -234,7 +234,7 @@ public class PluckerBookReader extends BookReader {
|
|||
{
|
||||
short columns = (short) PdbUtil.readShort(myStream);
|
||||
short rows = (short) PdbUtil.readShort(myStream);
|
||||
System.out.println("multiimage");
|
||||
//System.out.println("multiimage");
|
||||
/*PluckerMultiImage image = new PluckerMultiImage(rows, columns, Model.getImageMap());
|
||||
for (int i = 0; i < size / 2 - 2; ++i) {
|
||||
short us = (short)myStream.read();
|
||||
|
|
|
@ -109,7 +109,6 @@ public class PluckerTextStream extends PdbStream {
|
|||
|
||||
boolean doProcess = false;
|
||||
if (type == 0) {
|
||||
System.out.println(size);
|
||||
doProcess = myBase.read(myFullBuffer, 0, size) == size;
|
||||
} else if (myCompressionVersion == 1) {
|
||||
//doProcess =
|
||||
|
|
|
@ -99,7 +99,6 @@ public class ZLNetworkManager {
|
|||
public String perform(ZLNetworkRequest request) {
|
||||
boolean sucess = false;
|
||||
try {
|
||||
System.err.println("PERFORM: " + request.URL);
|
||||
final String error = doBeforeRequest(request);
|
||||
if (error != null) {
|
||||
return error;
|
||||
|
@ -107,9 +106,6 @@ public class ZLNetworkManager {
|
|||
HttpURLConnection httpConnection = null;
|
||||
int response = -1;
|
||||
for (int retryCounter = 0; retryCounter < 3 && response == -1; ++retryCounter) {
|
||||
if (retryCounter > 0) {
|
||||
System.err.println("RETRY: " + retryCounter);
|
||||
}
|
||||
final URL url = new URL(request.URL);
|
||||
final URLConnection connection = url.openConnection();
|
||||
if (!(connection instanceof HttpURLConnection)) {
|
||||
|
@ -135,8 +131,6 @@ public class ZLNetworkManager {
|
|||
}
|
||||
sucess = true;
|
||||
} else {
|
||||
System.err.println("RESPONSE: " + response);
|
||||
System.err.println("RESPONSE MESSAGE: " + httpConnection.getResponseMessage());
|
||||
if (response == HttpURLConnection.HTTP_UNAUTHORIZED) {
|
||||
return ZLNetworkErrors.errorMessage(ZLNetworkErrors.ERROR_AUTHENTICATION_FAILED);
|
||||
} else {
|
||||
|
|
|
@ -494,7 +494,6 @@ public abstract class ZLTextView extends ZLTextViewBase {
|
|||
}
|
||||
|
||||
final float charWidth = computeCharWidth(myLettersBuffer, myLettersBufferLength);
|
||||
System.err.println("CHARWIDTH: charWidth = " + charWidth);
|
||||
return charWidth;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue