1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-15 17:02:06 +01:00

Implement efficient read(buf,off,len) for DelayedInputStream

This commit is contained in:
Paul Schaub 2022-11-02 10:37:24 +01:00
parent fb637d51ed
commit 25b89f17c9

View file

@ -127,9 +127,6 @@ public class TeeBCPGInputStream {
} }
} }
// TODO: Uncomment, once BC-172.1 is available
// see https://github.com/bcgit/bc-java/issues/1257
/*
@Override @Override
public int read(byte[] b, int off, int len) throws IOException { public int read(byte[] b, int off, int len) throws IOException {
if (last != -1) { if (last != -1) {
@ -145,7 +142,6 @@ public class TeeBCPGInputStream {
} }
return r; return r;
} }
*/
/** /**
* Squeeze the last byte out and update the output stream. * Squeeze the last byte out and update the output stream.