Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
73356b0924
1 changed files with 1 additions and 8 deletions
|
@ -710,14 +710,7 @@ public class BinaryMapPoiReaderAdapter {
|
||||||
byte[] bytes = new byte[str.length() - ind];
|
byte[] bytes = new byte[str.length() - ind];
|
||||||
for(int i = ind; i < str.length(); i++ ) {
|
for(int i = ind; i < str.length(); i++ ) {
|
||||||
char ch = str.charAt(i) ;
|
char ch = str.charAt(i) ;
|
||||||
if(ch < 0 || ch >= 256) {
|
bytes[i - ind] = (byte) ((int)ch - 128 - 32);
|
||||||
throw new IllegalStateException();
|
|
||||||
}
|
|
||||||
if(ch >= 128) {
|
|
||||||
bytes[i - ind] = (byte) (ch - 256);
|
|
||||||
} else if(ch >= 0){
|
|
||||||
bytes[i - ind] = (byte) ch;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
GZIPInputStream gzn = new GZIPInputStream(new ByteArrayInputStream(
|
GZIPInputStream gzn = new GZIPInputStream(new ByteArrayInputStream(
|
||||||
|
|
Loading…
Reference in a new issue