public void close() throws IOException {
        closeStream();

        if (storeOutputStream != null) {
            storeOutputStream.close();
            storeOutputStream = null;
        }

        super.close();
        if (storeFile != null) {
            storeFile.delete();
        }
        closed = true;
    }
Closes the input stream and removes the temporary file if one was
created.

@throws IOException
tika-core/src/main/java/org/apache/tika/utils/RereadableInputStream.java