class CombinedInputStream extends InputStream {

    @Override
    public int read() throws IOException {
        //noinspection WhileLoopSpinsOnField
        while (currentStream != null) {
            int byteRead = currentStream.read();
            if (byteRead != -1) {
                return lastByteRead = byteRead;
            }
            advanceStream();
        }
        return lastByteRead = -1;
    }

    public  CombinedInputStream(@NonNull List<InputStream> inputStreams, boolean newLinePadding);

}