Fix reading single byte from DataSourceInputStream.

This commit is contained in:
Oliver Woodman 2014-12-20 11:57:49 +00:00
parent 7f91a6d4d8
commit ed6fcb638e

View file

@ -46,7 +46,7 @@ public class DataSourceInputStream extends InputStream {
@Override
public int read() throws IOException {
read(singleByteArray);
return singleByteArray[0];
return singleByteArray[0] & 0xFF;
}
@Override