mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 19:42:17 +02:00
Lower memory consumtion
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@1184 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
c4298667d8
commit
33a151e34e
1 changed files with 5 additions and 7 deletions
|
@ -63,11 +63,6 @@ class OPDSXMLReader extends ZLXMLReaderAdapter {
|
|||
private String myCalibreNamespaceId;
|
||||
private String myOpdsNamespaceId;
|
||||
|
||||
@Override
|
||||
public boolean dontCacheAttributeValues() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean processNamespaces() {
|
||||
return true;
|
||||
|
@ -367,9 +362,12 @@ class OPDSXMLReader extends ZLXMLReaderAdapter {
|
|||
tag = tag.intern();
|
||||
}
|
||||
|
||||
String bufferContent = myBuffer.toString().trim().intern();
|
||||
if (bufferContent.length() == 0) {
|
||||
final char[] bufferContentArray = myBuffer.toString().trim().toCharArray();
|
||||
final String bufferContent;
|
||||
if (bufferContentArray.length == 0) {
|
||||
bufferContent = null;
|
||||
} else {
|
||||
bufferContent = new String(bufferContentArray);
|
||||
}
|
||||
myBuffer.delete(0, myBuffer.length());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue