public static Tuple readTuple(final InputStream reader) throws IOException {
        final int tupleLength = DataEncoderHelper.readIntFromStream(reader);
        final byte[] tupleBytes = new byte[tupleLength];

        ByteStreams.readFully(reader, tupleBytes);